summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-07-08 09:09:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-08 16:47:29 (GMT)
commitef22318cff51244cd0047b11ee7accfded522782 (patch)
treed25d0a8f8d0f7ddc27350cea6d0e875cd377c8db /cache.h
parent3d75bba28d8665ec43f1faffce38d5817c77ebe8 (diff)
downloadgit-ef22318cff51244cd0047b11ee7accfded522782.zip
git-ef22318cff51244cd0047b11ee7accfded522782.tar.gz
git-ef22318cff51244cd0047b11ee7accfded522782.tar.bz2
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.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/cache.h b/cache.h
index 6049f86..3f6ae24 100644
--- a/cache.h
+++ b/cache.h
@@ -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);