refs.[ch]: remove unused ref_storage_backend_exists()

This function was added in 3dce444f178 (refs: add a backend method structure, 2016-09-04), but has never been used by anything. The only caller that might care uses find_ref_storage_backend() directly. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Sep 28, 2021 at 15:02 UTC 98961e42f047bf0a9891d6c7d58d54e86285ae52
2 files changed -7
refs.c
-5
@@ -33,11 +33,6 @@ static struct ref_storage_be *find_ref_storage_backend(const char *name)
33 return NULL;
34 }
35
36 -int ref_storage_backend_exists(const char *name)
37 -{
38 - return find_ref_storage_backend(name) != NULL;
39 -}
40 -
36 /*
37 * How to handle various characters in refnames:
38 * 0: An acceptable character for refs
refs.h
-2
@@ -836,8 +836,6 @@ int reflog_expire(const char *refname, const struct object_id *oid,
836 reflog_expiry_cleanup_fn cleanup_fn,
837 void *policy_cb_data);
838
839 -int ref_storage_backend_exists(const char *name);
840 -
839 struct ref_store *get_main_ref_store(struct repository *r);
840
841 /**