{"thread":{"id":"15666","subject":"[PATCH] remote.c: make free_ref(), parse_push_refspec() and free_refspecs() static.","startedAt":"2008-09-25T09:41:00Z","lastAt":"2008-09-25T09:41:00Z","messageCount":1,"participants":["Nanako Shiraishi"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"91568","messageId":"20080925184100.6117@nanako3.lavabit.com","threadId":"15666","inReplyTo":null,"subject":"[PATCH] remote.c: make free_ref(), parse_push_refspec() and free_refspecs() static.","fromName":"Nanako Shiraishi","fromEmail":"nanako3@lavabit.com","sentAt":"2008-09-25T09:41:00Z","receivedAt":"2008-09-25T09:41:00Z","isPatch":true,"sender":{"key":"nanako3@lavabit.com","avatar":"https://gravatar.com/avatar/3777b9e201c5883a62b1a6fdf7c53f2d712d1d80989146063ea861e33aad72a8?d=mp&s=160"},"body":"These functions are not used by any other file.\n\nSigned-off-by: Nanako Shiraishi <nanako3@lavabit.com>\n---\n remote.c |    6 +++---\n remote.h |    2 --\n 2 files changed, 3 insertions(+), 5 deletions(-)\n\ndiff --git a/remote.c b/remote.c\nindex 3f3c789..c45d96e 100644\n--- a/remote.c\n+++ b/remote.c\n@@ -455,7 +455,7 @@ static int verify_refname(char *name, int is_glob)\n  *          and dst pointers are always freeable pointers as well\n  *          as the refspec pointer itself.\n  */\n-void free_refspecs(struct refspec *refspec, int nr_refspec)\n+static void free_refspecs(struct refspec *refspec, int nr_refspec)\n {\n \tint i;\n \n@@ -613,7 +613,7 @@ struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec)\n \treturn parse_refspec_internal(nr_refspec, refspec, 1, 0);\n }\n \n-struct refspec *parse_push_refspec(int nr_refspec, const char **refspec)\n+static struct refspec *parse_push_refspec(int nr_refspec, const char **refspec)\n {\n \treturn parse_refspec_internal(nr_refspec, refspec, 0, 0);\n }\n@@ -783,7 +783,7 @@ struct ref *copy_ref_list(const struct ref *ref)\n \treturn ret;\n }\n \n-void free_ref(struct ref *ref)\n+static void free_ref(struct ref *ref)\n {\n \tif (!ref)\n \t\treturn;\ndiff --git a/remote.h b/remote.h\nindex 2601f6e..c6163ff 100644\n--- a/remote.h\n+++ b/remote.h\n@@ -77,8 +77,6 @@ void ref_remove_duplicates(struct ref *ref_map);\n \n int valid_fetch_refspec(const char *refspec);\n struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec);\n-struct refspec *parse_push_refspec(int nr_refspec, const char **refspec);\n-void free_refspecs(struct refspec *refspec, int nr_refspec);\n \n int match_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail,\n \t       int nr_refspec, const char **refspec, int all);\n-- \n1.6.0.2\n\n-- \nNanako Shiraishi\nhttp://ivory.ap.teacup.com/nanako3/\n"}]}