Skip to content

Commit 39784cd

Browse files
sbeyergitster
authored andcommitted
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>
1 parent 1e41229 commit 39784cd

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

sequencer.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ static inline int is_rebase_i(const struct replay_opts *opts)
4747
return 0;
4848
}
4949

50-
static const char *get_dir(const struct replay_opts *opts)
51-
{
52-
return git_path_seq_dir();
53-
}
54-
5550
static const char *get_todo_path(const struct replay_opts *opts)
5651
{
5752
return git_path_todo_file();
@@ -160,7 +155,7 @@ int sequencer_remove_state(struct replay_opts *opts)
160155
free(opts->xopts[i]);
161156
free(opts->xopts);
162157

163-
strbuf_addf(&dir, "%s", get_dir(opts));
158+
strbuf_addf(&dir, "%s", git_path_seq_dir());
164159
remove_dir_recursively(&dir, 0);
165160
strbuf_release(&dir);
166161

0 commit comments

Comments
 (0)