diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2014-08-28 16:41:34 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-10-15 10:47:27 -0700 |
commit | fb43bd1cd187bcd29312df3b0394a457d524906d (patch) | |
tree | 167849a847b24867c23cab7718238cbc60f8ba9f /lockfile.c | |
parent | 5a603b046351894a3c892d5bd6948fcee1bee5ab (diff) | |
download | git-fb43bd1cd187bcd29312df3b0394a457d524906d.tar.gz |
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>
Diffstat (limited to 'lockfile.c')
-rw-r--r-- | lockfile.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lockfile.c b/lockfile.c index d098adebf1..4f16ee78ce 100644 --- a/lockfile.c +++ b/lockfile.c @@ -162,16 +162,6 @@ void unable_to_lock_message(const char *path, int err, struct strbuf *buf) absolute_path(path), strerror(err)); } -int unable_to_lock_error(const char *path, int err) -{ - struct strbuf buf = STRBUF_INIT; - - unable_to_lock_message(path, err, &buf); - error("%s", buf.buf); - strbuf_release(&buf); - return -1; -} - NORETURN void unable_to_lock_die(const char *path, int err) { struct strbuf buf = STRBUF_INIT; |