mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-24 00:58:22 +00:00
diff: remove unused parameter
This commit is contained in:
parent
9b62e40ecd
commit
8d0f46754f
@ -169,7 +169,6 @@ static int file_is_binary_by_attr(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int file_is_binary_by_content(
|
static int file_is_binary_by_content(
|
||||||
git_diff_list *diff,
|
|
||||||
git_diff_delta *delta,
|
git_diff_delta *delta,
|
||||||
git_map *old_data,
|
git_map *old_data,
|
||||||
git_map *new_data)
|
git_map *new_data)
|
||||||
@ -177,8 +176,6 @@ static int file_is_binary_by_content(
|
|||||||
git_buf search;
|
git_buf search;
|
||||||
git_text_stats stats;
|
git_text_stats stats;
|
||||||
|
|
||||||
GIT_UNUSED(diff);
|
|
||||||
|
|
||||||
if ((delta->old_file.flags & BINARY_DIFF_FLAGS) == 0) {
|
if ((delta->old_file.flags & BINARY_DIFF_FLAGS) == 0) {
|
||||||
search.ptr = old_data->data;
|
search.ptr = old_data->data;
|
||||||
search.size = min(old_data->len, 4000);
|
search.size = min(old_data->len, 4000);
|
||||||
@ -408,7 +405,7 @@ int git_diff_foreach(
|
|||||||
*/
|
*/
|
||||||
if (delta->binary == -1) {
|
if (delta->binary == -1) {
|
||||||
error = file_is_binary_by_content(
|
error = file_is_binary_by_content(
|
||||||
diff, delta, &old_data, &new_data);
|
delta, &old_data, &new_data);
|
||||||
if (error < 0)
|
if (error < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user