aboutsummaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-05-12 23:48:18 -0400
committerJunio C Hamano <gitster@pobox.com>2017-05-15 13:00:25 +0900
commite3f43ce765c38f4be94239d07c8c3c596780c514 (patch)
treed79aa6f92cfd935667821cbb1ddd15d4208d666c /git-compat-util.h
parent940283101ce87250cf31a592730386f5061e1286 (diff)
downloadgit-e3f43ce765c38f4be94239d07c8c3c596780c514.tar.gz
git-e3f43ce765c38f4be94239d07c8c3c596780c514.tar.xz
usage.c: drop set_error_handle()
The set_error_handle() function was introduced by 3b331e926 (vreportf: report to arbitrary filehandles, 2015-08-11) so that run-command could send post-fork, pre-exec errors to the parent's original stderr. That use went away in 79319b194 (run-command: eliminate calls to error handling functions in child, 2017-04-19), which pushes all of the error reporting to the parent. This leaves no callers of set_error_handle(). As we're not likely to add any new ones, let's drop it. Signed-off-by: Jeff King <peff@peff.net> Acked-by: Brandon Williams <bmwill@google.com> Reviewed-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 8a4a3f85e..f1f2a2d73 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -445,7 +445,6 @@ extern void (*get_error_routine(void))(const char *err, va_list params);
extern void set_warn_routine(void (*routine)(const char *warn, va_list params));
extern void (*get_warn_routine(void))(const char *warn, va_list params);
extern void set_die_is_recursing_routine(int (*routine)(void));
-extern void set_error_handle(FILE *);
extern int starts_with(const char *str, const char *prefix);