summaryrefslogtreecommitdiff
path: root/submodule-config.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-03-28 22:35:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-29 16:44:51 (GMT)
commit0c89fdd739183234f86fe2be03a0374705ed93ed (patch)
tree22af2a3216e1c5f6ac2449262224c23a12f289ca /submodule-config.c
parent3b8fb393bc32f8d96c2eb4c89349c864e5c56039 (diff)
downloadgit-0c89fdd739183234f86fe2be03a0374705ed93ed.zip
git-0c89fdd739183234f86fe2be03a0374705ed93ed.tar.gz
git-0c89fdd739183234f86fe2be03a0374705ed93ed.tar.bz2
submodule-config: remove submodule_from_cache
This continues the story of bf12fcdf5e (submodule-config: store the_submodule_cache in the_repository, 2017-06-22). The previous patch taught submodule_from_path to take a repository into account, such that submodule_from_{path, cache} are the same now. Remove submodule_from_cache, migrating all its callers to submodule_from_path. Reviewed-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Stefan Beller <sbeller@google.com> Reviewed-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule-config.c')
-rw-r--r--submodule-config.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/submodule-config.c b/submodule-config.c
index 0ea1e92..9abe916 100644
--- a/submodule-config.c
+++ b/submodule-config.c
@@ -635,15 +635,6 @@ const struct submodule *submodule_from_path(struct repository *r,
return config_from(r->submodule_cache, treeish_name, path, lookup_path);
}
-const struct submodule *submodule_from_cache(struct repository *repo,
- const struct object_id *treeish_name,
- const char *key)
-{
- gitmodules_read_check(repo);
- return config_from(repo->submodule_cache, treeish_name,
- key, lookup_path);
-}
-
void submodule_free(struct repository *r)
{
if (r->submodule_cache)