From: Jakub Narebski Date: Thu, 25 Sep 2008 12:53:01 GMT Subject: Re: [PATCH] usage.c: remove unused functions Message-ID: In-Reply-To: <200809251348.42789.trast@student.ethz.ch> Thomas Rast wrote: > Nanako Shiraishi wrote: >> This removes three functions that are not used anywhere. > [...] >> -void set_usage_routine(void (*routine)(const char *err) NORETURN) > [...] >> -void set_error_routine(void (*routine)(const char *err, va_list params)) > [...] >> -void set_warn_routine(void (*routine)(const char *warn, va_list params)) > > These blame to the following commit: > > commit 39a3f5ea7c0352a530338d30d4e618f6b4db84e4 > Author: Petr Baudis > Date: Sat Jun 24 04:34:38 2006 +0200 > > Customizable error handlers > > This patch makes the usage(), die() and error() handlers customizable. > Nothing in the git code itself uses that but many other libgit users > (like Git.pm) will. > [...] > > So apparently the intent was that they would only be used from outside > Git. I don't know whether anyone still plans to do that, but they're > certainly not "just" unused. By the way, those functions could be used to implement "git --silent ", which is equivalent of "git 2>/dev/null" (which you don't always can do easily). -- Jakub Narebski Warsaw, Poland ShadeHawk on #git