diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-11-17 22:45:22 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-11-17 22:45:22 +0100 |
commit | 6d40812e4b5d2128665351f4b427c7da7c7d86d5 (patch) | |
tree | f2c2fa0d1fd83856dda5d68afcab485e2d3ac387 /diffcore-rename.c | |
parent | Merge branch 'jk/create-branch-remove-unused-param' (diff) | |
parent | diffcore-delta: remove unused parameter to diffcore_count_changes() (diff) | |
download | git-6d40812e4b5d2128665351f4b427c7da7c7d86d5.tar.xz git-6d40812e4b5d2128665351f4b427c7da7c7d86d5.zip |
Merge branch 'tk/diffcore-delta-remove-unused'
Code cleanup.
* tk/diffcore-delta-remove-unused:
diffcore-delta: remove unused parameter to diffcore_count_changes()
Diffstat (limited to 'diffcore-rename.c')
-rw-r--r-- | diffcore-rename.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/diffcore-rename.c b/diffcore-rename.c index 54a2396653..f7444c86bd 100644 --- a/diffcore-rename.c +++ b/diffcore-rename.c @@ -145,7 +145,6 @@ static int estimate_similarity(struct diff_filespec *src, * call into this function in that case. */ unsigned long max_size, delta_size, base_size, src_copied, literal_added; - unsigned long delta_limit; int score; /* We deal only with regular files. Symlink renames are handled @@ -191,11 +190,8 @@ static int estimate_similarity(struct diff_filespec *src, if (!dst->cnt_data && diff_populate_filespec(dst, 0)) return 0; - delta_limit = (unsigned long) - (base_size * (MAX_SCORE-minimum_score) / MAX_SCORE); if (diffcore_count_changes(src, dst, &src->cnt_data, &dst->cnt_data, - delta_limit, &src_copied, &literal_added)) return 0; |