ref-filter: make parse_ref_filter_atom a private function

The parse_ref_filter_atom() function really shouldn't be exposed outside of ref-filter.c; its return value is an integer index into an array that is private in that file. Since the previous commit removed the sole external caller (and replaced it with a public function at a more appropriately level), we can just make this static. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jul 13, 2017 at 11:02 UTC aa8a5d144da4e4ec43580831ff4a741538d21db4
2 files changed +1 -3
ref-filter.c
+1 -1
@@ -364,7 +364,7 @@ struct atom_value {
364 /*
365 * Used to parse format string and sort specifiers
366 */
367 -int parse_ref_filter_atom(const char *atom, const char *ep)
367 +static int parse_ref_filter_atom(const char *atom, const char *ep)
368 {
369 const char *sp;
370 const char *arg;
ref-filter.h
-2
@@ -104,8 +104,6 @@ struct ref_format {
104 int filter_refs(struct ref_array *array, struct ref_filter *filter, unsigned int type);
105 /* Clear all memory allocated to ref_array */
106 void ref_array_clear(struct ref_array *array);
107 -/* Parse format string and sort specifiers */
108 -int parse_ref_filter_atom(const char *atom, const char *ep);
107 /* Used to verify if the given format is correct and to parse out the used atoms */
108 int verify_ref_format(struct ref_format *format);
109 /* Sort the given ref_array as per the ref_sorting provided */