Commit 8d0f46754ff933f014e033c0e4f442927788fa29

nulltoken 2012-05-03T16:27:22

diff: remove unused parameter

diff --git a/src/diff_output.c b/src/diff_output.c
index c380db9..4eefbf2 100644
--- a/src/diff_output.c
+++ b/src/diff_output.c
@@ -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;
 		}