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>
This commit is contained in:

committed by
Junio C Hamano

parent
5a603b0463
commit
fb43bd1cd1
10
lockfile.c
10
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;
|
||||
|
Reference in New Issue
Block a user