sequencer: remove useless get_dir() function
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>
Stephan Beyer committed
Dec 7, 2016 at 22:51 UTC
39784cd3620cc47415c9010ec58a9616f040125c
1 file changed
+1
-6
sequencer.c
+1
-6
@@ -47,11 +47,6 @@ static inline int is_rebase_i(const struct replay_opts *opts)
47
return 0;
48
}
49
50
-static const char *get_dir(const struct replay_opts *opts)
51
-{
52
- return git_path_seq_dir();
53
-}
54
-
50
static const char *get_todo_path(const struct replay_opts *opts)
51
{
52
return git_path_todo_file();
@@ -160,7 +155,7 @@ int sequencer_remove_state(struct replay_opts *opts)
155
free(opts->xopts[i]);
156
free(opts->xopts);
157
163
- strbuf_addf(&dir, "%s", get_dir(opts));
158
+ strbuf_addf(&dir, "%s", git_path_seq_dir());
159
remove_dir_recursively(&dir, 0);
160
strbuf_release(&dir);
161