From ef22318cff51244cd0047b11ee7accfded522782 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Fri, 8 Jul 2016 05:09:34 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- cache.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 6049f86711..3f6ae242df 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); -- cgit v1.3