refs: delete pack_refs() in favor of refs_pack_refs()

It only has one caller, not worth keeping just for convenience. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Mar 26, 2017 at 09:42 UTC 7c744782abdc0c6fdf0fd4eae2a790ea2631f1c4
3 files changed +1 -7
builtin/pack-refs.c
+1 -1
@@ -17,5 +17,5 @@ int cmd_pack_refs(int argc, const char **argv, const char *prefix)
17 };
18 if (parse_options(argc, argv, prefix, opts, pack_refs_usage, 0))
19 usage_with_options(pack_refs_usage, opts);
20 - return pack_refs(flags);
20 + return refs_pack_refs(get_main_ref_store(), flags);
21 }
refs.c
-5
@@ -1602,11 +1602,6 @@ int refs_pack_refs(struct ref_store *refs, unsigned int flags)
1602 return refs->be->pack_refs(refs, flags);
1603 }
1604
1605 -int pack_refs(unsigned int flags)
1606 -{
1607 - return refs_pack_refs(get_main_ref_store(), flags);
1608 -}
1609 -
1605 int refs_peel_ref(struct ref_store *refs, const char *refname,
1606 unsigned char *sha1)
1607 {
refs.h
-1
@@ -297,7 +297,6 @@ void warn_dangling_symrefs(FILE *fp, const char *msg_fmt,
297 * flags: Combination of the above PACK_REFS_* flags.
298 */
299 int refs_pack_refs(struct ref_store *refs, unsigned int flags);
300 -int pack_refs(unsigned int flags);
300
301 /*
302 * Flags controlling ref_transaction_update(), ref_transaction_create(), etc.