aboutsummaryrefslogtreecommitdiffstats
path: root/run-command.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-10-12 23:02:27 +0200
committerJunio C Hamano <gitster@pobox.com>2022-10-12 14:12:41 -0700
commit36d69bf77e26793277d2708dd9ddad078e7e67a2 (patch)
tree9f04479810731b8c1aa7d7f4058e77462e886d29 /run-command.c
parent6e5ba0bae447dba2adabea588b248b5fc6f59cd6 (diff)
downloadgit-36d69bf77e26793277d2708dd9ddad078e7e67a2.tar.gz
run-command API: move *_tr2() users to "run_processes_parallel()"
Have the users of the "run_processes_parallel_tr2()" function use "run_processes_parallel()" instead. In preceding commits the latter was refactored to take a "struct run_process_parallel_opts" argument, since the only reason for "run_processes_parallel_tr2()" to exist was to take arguments that are now a part of that struct we can do away with it. See ee4512ed481 (trace2: create new combined trace facility, 2019-02-22) for the addition of the "*_tr2()" variant of the function, it was used by every caller except "t/helper/test-run-command.c".. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/run-command.c b/run-command.c
index 2858ec7bef..646ea22e39 100644
--- a/run-command.c
+++ b/run-command.c
@@ -1827,24 +1827,6 @@ void run_processes_parallel(const struct run_process_parallel_opts *opts)
trace2_region_leave(tr2_category, tr2_label, NULL);
}
-void run_processes_parallel_tr2(size_t processes, get_next_task_fn get_next_task,
- start_failure_fn start_failure,
- task_finished_fn task_finished, void *pp_cb,
- const char *tr2_category, const char *tr2_label)
-{
- const struct run_process_parallel_opts opts = {
- .tr2_category = tr2_category,
- .tr2_label = tr2_label,
- .processes = processes,
-
- .get_next_task = get_next_task,
- .start_failure = start_failure,
- .task_finished = task_finished,
- };
-
- run_processes_parallel(&opts);
-}
-
int run_auto_maintenance(int quiet)
{
int enabled;