From 6859ce581a2d983ac77f7e7cdd4318244cd11f2e Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 17 Nov 2009 22:49:05 -0500 Subject: [PATCH] run_io_rd_dir: obsolete by switching call sites to run_io_rd_dir --- tig.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tig.c b/tig.c index e931ce2..f98fb24 100644 --- a/tig.c +++ b/tig.c @@ -650,12 +650,6 @@ run_io_rd(struct io *io, const char **argv, const char *dir, enum format_flags f return init_io_rd(io, argv, dir, flags) && start_io(io); } -static bool -run_io_rd_dir(struct io *io, const char **argv, const char *dir, enum format_flags flags) -{ - return init_io_rd(io, argv, dir, flags) && start_io(io); -} - static bool io_eof(struct io *io) { @@ -4257,7 +4251,7 @@ tree_read_date(struct view *view, char *text, bool *read_date) return TRUE; } - if (!run_io_rd_dir(&io, log_file, opt_cdup, FORMAT_NONE)) { + if (!run_io_rd(&io, log_file, opt_cdup, FORMAT_NONE)) { report("Failed to load tree data"); return TRUE; } @@ -4652,7 +4646,7 @@ blame_open(struct view *view) return FALSE; if (*opt_ref || !io_open(&view->io, path)) { - if (!run_io_rd_dir(&view->io, blame_cat_file_argv, opt_cdup, FORMAT_ALL)) + if (!run_io_rd(&view->io, blame_cat_file_argv, opt_cdup, FORMAT_ALL)) return FALSE; } @@ -4748,7 +4742,7 @@ blame_read_file(struct view *view, const char *line, bool *read_file) if (view->lines == 0 && !view->parent) die("No blame exist for %s", view->vid); - if (view->lines == 0 || !run_io_rd_dir(&io, argv, opt_cdup, FORMAT_ALL)) { + if (view->lines == 0 || !run_io_rd(&io, argv, opt_cdup, FORMAT_ALL)) { report("Failed to load blame data"); return TRUE; } -- 2.30.2