From 0c89fdd739183234f86fe2be03a0374705ed93ed Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Wed, 28 Mar 2018 15:35:30 -0700 Subject: 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 Signed-off-by: Stefan Beller Reviewed-by: Jonathan Tan Signed-off-by: Junio C Hamano --- submodule-config.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'submodule-config.h') diff --git a/submodule-config.h b/submodule-config.h index 43dfe7dec0..6f686184e8 100644 --- a/submodule-config.h +++ b/submodule-config.h @@ -45,9 +45,6 @@ const struct submodule *submodule_from_name(struct repository *r, const struct submodule *submodule_from_path(struct repository *r, const struct object_id *commit_or_tree, const char *path); -extern const struct submodule *submodule_from_cache(struct repository *repo, - const struct object_id *treeish_name, - const char *key); void submodule_free(struct repository *r); #endif /* SUBMODULE_CONFIG_H */ -- cgit v1.2.3