Merge branch 'jk/unused-post-2.39'
Code clean-up around unused function parameters. * jk/unused-post-2.39: userdiff: mark unused parameter in internal callback list-objects-filter: mark unused parameters in virtual functions diff: mark unused parameters in callbacks xdiff: mark unused parameter in xdl_call_hunk_func() xdiff: drop unused parameter in def_ff() ws: drop unused parameter from ws_blank_line() list-objects: drop process_gitlink() function blob: drop unused parts of parse_blob_buffer() ls-refs: use repository parameter to iterate refs
This commit is contained in:
25
revision.c
25
revision.c
@ -600,10 +600,12 @@ static struct commit *one_relevant_parent(const struct rev_info *revs,
|
||||
static int tree_difference = REV_TREE_SAME;
|
||||
|
||||
static void file_add_remove(struct diff_options *options,
|
||||
int addremove, unsigned mode,
|
||||
const struct object_id *oid,
|
||||
int oid_valid,
|
||||
const char *fullpath, unsigned dirty_submodule)
|
||||
int addremove,
|
||||
unsigned mode UNUSED,
|
||||
const struct object_id *oid UNUSED,
|
||||
int oid_valid UNUSED,
|
||||
const char *fullpath UNUSED,
|
||||
unsigned dirty_submodule UNUSED)
|
||||
{
|
||||
int diff = addremove == '+' ? REV_TREE_NEW : REV_TREE_OLD;
|
||||
struct rev_info *revs = options->change_fn_data;
|
||||
@ -614,12 +616,15 @@ static void file_add_remove(struct diff_options *options,
|
||||
}
|
||||
|
||||
static void file_change(struct diff_options *options,
|
||||
unsigned old_mode, unsigned new_mode,
|
||||
const struct object_id *old_oid,
|
||||
const struct object_id *new_oid,
|
||||
int old_oid_valid, int new_oid_valid,
|
||||
const char *fullpath,
|
||||
unsigned old_dirty_submodule, unsigned new_dirty_submodule)
|
||||
unsigned old_mode UNUSED,
|
||||
unsigned new_mode UNUSED,
|
||||
const struct object_id *old_oid UNUSED,
|
||||
const struct object_id *new_oid UNUSED,
|
||||
int old_oid_valid UNUSED,
|
||||
int new_oid_valid UNUSED,
|
||||
const char *fullpath UNUSED,
|
||||
unsigned old_dirty_submodule UNUSED,
|
||||
unsigned new_dirty_submodule UNUSED)
|
||||
{
|
||||
tree_difference = REV_TREE_DIFFERENT;
|
||||
options->flags.has_changes = 1;
|
||||
|
||||
Reference in New Issue
Block a user