Skip to content

Commit

Permalink
remote.c: make free_ref(), parse_push_refspec() and free_refspecs() s…
Browse files Browse the repository at this point in the history
…tatic.

These functions are not used by any other file.

Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Nanako Shiraishi authored and Shawn O. Pearce committed Sep 25, 2008
1 parent 3b9b116 commit 697d7f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ static int verify_refname(char *name, int is_glob)
* and dst pointers are always freeable pointers as well
* as the refspec pointer itself.
*/
void free_refspecs(struct refspec *refspec, int nr_refspec)
static void free_refspecs(struct refspec *refspec, int nr_refspec)
{
int i;

Expand Down Expand Up @@ -613,7 +613,7 @@ struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec)
return parse_refspec_internal(nr_refspec, refspec, 1, 0);
}

struct refspec *parse_push_refspec(int nr_refspec, const char **refspec)
static struct refspec *parse_push_refspec(int nr_refspec, const char **refspec)
{
return parse_refspec_internal(nr_refspec, refspec, 0, 0);
}
Expand Down Expand Up @@ -783,7 +783,7 @@ struct ref *copy_ref_list(const struct ref *ref)
return ret;
}

void free_ref(struct ref *ref)
static void free_ref(struct ref *ref)
{
if (!ref)
return;
Expand Down
2 changes: 0 additions & 2 deletions remote.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ void ref_remove_duplicates(struct ref *ref_map);

int valid_fetch_refspec(const char *refspec);
struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec);
struct refspec *parse_push_refspec(int nr_refspec, const char **refspec);
void free_refspecs(struct refspec *refspec, int nr_refspec);

int match_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail,
int nr_refspec, const char **refspec, int all);
Expand Down

0 comments on commit 697d7f5

Please sign in to comment.