Skip to content

Commit eabf740

Browse files
tgummerergitster
authored andcommitted
stash: drop unused parameter
Drop the unused prefix parameter in do_drop_stash. We also have an unused "prefix" parameter in the 'create_stash' function, however we leave that in place for symmetry with the other top-level functions. Reported-by: Jeff King <[email protected]> Signed-off-by: Thomas Gummerer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7906af0 commit eabf740

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

builtin/stash.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ static int apply_stash(int argc, const char **argv, const char *prefix)
527527
return ret;
528528
}
529529

530-
static int do_drop_stash(const char *prefix, struct stash_info *info, int quiet)
530+
static int do_drop_stash(struct stash_info *info, int quiet)
531531
{
532532
int ret;
533533
struct child_process cp_reflog = CHILD_PROCESS_INIT;
@@ -597,7 +597,7 @@ static int drop_stash(int argc, const char **argv, const char *prefix)
597597

598598
assert_stash_ref(&info);
599599

600-
ret = do_drop_stash(prefix, &info, quiet);
600+
ret = do_drop_stash(&info, quiet);
601601
free_stash_info(&info);
602602
return ret;
603603
}
@@ -626,7 +626,7 @@ static int pop_stash(int argc, const char **argv, const char *prefix)
626626
printf_ln(_("The stash entry is kept in case "
627627
"you need it again."));
628628
else
629-
ret = do_drop_stash(prefix, &info, quiet);
629+
ret = do_drop_stash(&info, quiet);
630630

631631
free_stash_info(&info);
632632
return ret;
@@ -663,7 +663,7 @@ static int branch_stash(int argc, const char **argv, const char *prefix)
663663
if (!ret)
664664
ret = do_apply_stash(prefix, &info, 1, 0);
665665
if (!ret && info.is_stash_ref)
666-
ret = do_drop_stash(prefix, &info, 0);
666+
ret = do_drop_stash(&info, 0);
667667

668668
free_stash_info(&info);
669669

0 commit comments

Comments
 (0)