lockfile: remove unable_to_lock_error

The former caller uses unable_to_lock_message now. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Reviewed-by: Ronnie Sahlberg <sahlberg@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Nieder committed Aug 28, 2014 at 16:41 UTC fb43bd1cd187bcd29312df3b0394a457d524906d
2 files changed -11
lockfile.c
-10
@@ -162,16 +162,6 @@ void unable_to_lock_message(const char *path, int err, struct strbuf *buf)
162 absolute_path(path), strerror(err));
163 }
164
165 -int unable_to_lock_error(const char *path, int err)
166 -{
167 - struct strbuf buf = STRBUF_INIT;
168 -
169 - unable_to_lock_message(path, err, &buf);
170 - error("%s", buf.buf);
171 - strbuf_release(&buf);
172 - return -1;
173 -}
174 -
165 NORETURN void unable_to_lock_die(const char *path, int err)
166 {
167 struct strbuf buf = STRBUF_INIT;
lockfile.h
-1
@@ -71,7 +71,6 @@ struct lock_file {
71 #define LOCK_DIE_ON_ERROR 1
72 #define LOCK_NO_DEREF 2
73
74 -extern int unable_to_lock_error(const char *path, int err);
74 extern void unable_to_lock_message(const char *path, int err,
75 struct strbuf *buf);
76 extern NORETURN void unable_to_lock_die(const char *path, int err);