mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 14:02:48 +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(
|
||||
git_diff_list *diff,
|
||||
git_diff_delta *delta,
|
||||
git_map *old_data,
|
||||
git_map *new_data)
|
||||
@ -177,8 +176,6 @@ static int file_is_binary_by_content(
|
||||
git_buf search;
|
||||
git_text_stats stats;
|
||||
|
||||
GIT_UNUSED(diff);
|
||||
|
||||
if ((delta->old_file.flags & BINARY_DIFF_FLAGS) == 0) {
|
||||
search.ptr = old_data->data;
|
||||
search.size = min(old_data->len, 4000);
|
||||
@ -408,7 +405,7 @@ int git_diff_foreach(
|
||||
*/
|
||||
if (delta->binary == -1) {
|
||||
error = file_is_binary_by_content(
|
||||
diff, delta, &old_data, &new_data);
|
||||
delta, &old_data, &new_data);
|
||||
if (error < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user