]> git.ipfire.org Git - thirdparty/git.git/blobdiff - refs.c
cache.h: move remote/connect API out of it
[thirdparty/git.git] / refs.c
diff --git a/refs.c b/refs.c
index 43022066499ffaf828ac31e82b77f53539bc232d..330060c8665ab761b2d1d2432dce3d5c11ede86c 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -3193,14 +3193,6 @@ int update_ref(const char *action, const char *refname,
        return 0;
 }
 
-struct ref *find_ref_by_name(const struct ref *list, const char *name)
-{
-       for ( ; list; list = list->next)
-               if (!strcmp(list->name, name))
-                       return (struct ref *)list;
-       return NULL;
-}
-
 /*
  * generate a format suitable for scanf from a ref_rev_parse_rules
  * rule, that is replace the "%.*s" spec with a "%s" spec