diff options
author | Jeff King <peff@peff.net> | 2016-07-08 05:09:34 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-08 09:47:29 -0700 |
commit | ef22318cff51244cd0047b11ee7accfded522782 (patch) | |
tree | d25d0a8f8d0f7ddc27350cea6d0e875cd377c8db /cache.h | |
parent | 3d75bba28d8665ec43f1faffce38d5817c77ebe8 (diff) | |
download | git-ef22318cff51244cd0047b11ee7accfded522782.tar.gz |
write_file: drop "gently" form
There are no callers left of write_file_gently(). Let's drop
it, as it doesn't seem likely for new callers to be added
(since its inception, the only callers who wanted the gentle
form generally just died immediately themselves, and have
since been converted).
While we're there, let's also drop the "int" return from
write_file, as it is never meaningful (in the non-gentle
form, we always either die or return 0).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1734,8 +1734,7 @@ static inline ssize_t write_str_in_full(int fd, const char *str) return write_in_full(fd, str, strlen(str)); } -extern int write_file(const char *path, const char *fmt, ...); -extern int write_file_gently(const char *path, const char *fmt, ...); +extern void write_file(const char *path, const char *fmt, ...); /* pager.c */ extern void setup_pager(void); |