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 <peff@peff.net> Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Thomas Gummerer committed Mar 9, 2019 at 18:30 UTC eabf7405ab302ea6f590de739e9458405a8fa7dc
1 file changed +4 -4
builtin/stash.c
+4 -4
@@ -527,7 +527,7 @@ static int apply_stash(int argc, const char **argv, const char *prefix)
527 return ret;
528 }
529
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)
531 {
532 int ret;
533 struct child_process cp_reflog = CHILD_PROCESS_INIT;
@@ -597,7 +597,7 @@ static int drop_stash(int argc, const char **argv, const char *prefix)
597
598 assert_stash_ref(&info);
599
600 - ret = do_drop_stash(prefix, &info, quiet);
600 + ret = do_drop_stash(&info, quiet);
601 free_stash_info(&info);
602 return ret;
603 }
@@ -626,7 +626,7 @@ static int pop_stash(int argc, const char **argv, const char *prefix)
626 printf_ln(_("The stash entry is kept in case "
627 "you need it again."));
628 else
629 - ret = do_drop_stash(prefix, &info, quiet);
629 + ret = do_drop_stash(&info, quiet);
630
631 free_stash_info(&info);
632 return ret;
@@ -663,7 +663,7 @@ static int branch_stash(int argc, const char **argv, const char *prefix)
663 if (!ret)
664 ret = do_apply_stash(prefix, &info, 1, 0);
665 if (!ret && info.is_stash_ref)
666 - ret = do_drop_stash(prefix, &info, 0);
666 + ret = do_drop_stash(&info, 0);
667
668 free_stash_info(&info);
669