Skip to content

Commit fb43bd1

Browse files
jrngitster
authored andcommitted
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>
1 parent 5a603b0 commit fb43bd1

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

lockfile.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,6 @@ void unable_to_lock_message(const char *path, int err, struct strbuf *buf)
162162
absolute_path(path), strerror(err));
163163
}
164164

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-
175165
NORETURN void unable_to_lock_die(const char *path, int err)
176166
{
177167
struct strbuf buf = STRBUF_INIT;

lockfile.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ struct lock_file {
7171
#define LOCK_DIE_ON_ERROR 1
7272
#define LOCK_NO_DEREF 2
7373

74-
extern int unable_to_lock_error(const char *path, int err);
7574
extern void unable_to_lock_message(const char *path, int err,
7675
struct strbuf *buf);
7776
extern NORETURN void unable_to_lock_die(const char *path, int err);

0 commit comments

Comments
 (0)