summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2014-01-06 00:00:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-01-06 17:05:40 (GMT)
commitfeefdf62c107fd63056becf547ea324dbb730e30 (patch)
tree0f43e3964659c0ee9fac199e5e48ce760debb92f /commit.h
parent16a2743cd08c74d71b17e663c05c878fddffa03c (diff)
downloadgit-feefdf62c107fd63056becf547ea324dbb730e30.zip
git-feefdf62c107fd63056becf547ea324dbb730e30.tar.gz
git-feefdf62c107fd63056becf547ea324dbb730e30.tar.bz2
shallow: remove unused code
Commit 58babfff ("shallow.c: the 8 steps to select new commits for .git/shallow", 05-12-2013) added a function to implement step 5 of the quoted eight steps, namely 'remove_nonexistent_ours_in_pack()'. This function implements an optional optimization step in the new shallow commit selection algorithm. However, this function has no callers. (The commented out call sites would need to change, in order to provide information required by the function.) Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Acked-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/commit.h b/commit.h
index affe210..2a20b10 100644
--- a/commit.h
+++ b/commit.h
@@ -229,8 +229,6 @@ struct shallow_info {
extern void prepare_shallow_info(struct shallow_info *, struct sha1_array *);
extern void clear_shallow_info(struct shallow_info *);
extern void remove_nonexistent_theirs_shallow(struct shallow_info *);
-extern void remove_nonexistent_ours_in_pack(struct shallow_info *,
- struct packed_git *);
extern void assign_shallow_commits_to_refs(struct shallow_info *info,
uint32_t **used,
int *ref_status);