]> git.ipfire.org Git - thirdparty/git.git/commitdiff
sequencer: remove useless get_dir() function
authorStephan Beyer <s-beyer@gmx.net>
Wed, 7 Dec 2016 21:51:33 +0000 (22:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Dec 2016 22:51:16 +0000 (14:51 -0800)
This function is used only once, for the removal of the
directory. It is not used for the creation of the directory nor
anywhere else.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c

index 0b78f3149fe44058a6aa06c142f5893e4cab5e35..3ac4cb8d3baa19a7a532d131d6b16af179236062 100644 (file)
@@ -47,11 +47,6 @@ static inline int is_rebase_i(const struct replay_opts *opts)
        return 0;
 }
 
-static const char *get_dir(const struct replay_opts *opts)
-{
-       return git_path_seq_dir();
-}
-
 static const char *get_todo_path(const struct replay_opts *opts)
 {
        return git_path_todo_file();
@@ -160,7 +155,7 @@ int sequencer_remove_state(struct replay_opts *opts)
                free(opts->xopts[i]);
        free(opts->xopts);
 
-       strbuf_addf(&dir, "%s", get_dir(opts));
+       strbuf_addf(&dir, "%s", git_path_seq_dir());
        remove_dir_recursively(&dir, 0);
        strbuf_release(&dir);