Commit 8d0f4675 by nulltoken

diff: remove unused parameter

parent 9b62e40e
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment