diff options
author | Ronnie Sahlberg <sahlberg@google.com> | 2014-11-03 08:55:56 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-11-03 11:18:29 -0800 |
commit | 6a0103dc112c3f8c0d3e3f401fbd33ea6e273b31 (patch) | |
tree | 50d91ab0290caa4fe5c58d7aea061f33575d111a | |
parent | 176586fd14abe46b35bd68840762c32d204c25c6 (diff) | |
download | git-6a0103dc112c3f8c0d3e3f401fbd33ea6e273b31.tar.gz |
refs.c: remove lock_any_ref_for_update
No one is using this function so we can delete it.
Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | refs.c | 7 | ||||
-rw-r--r-- | refs.h | 9 |
2 files changed, 1 insertions, 15 deletions
@@ -2352,13 +2352,6 @@ static struct ref_lock *lock_ref_sha1_basic(const char *refname, return NULL; } -struct ref_lock *lock_any_ref_for_update(const char *refname, - const unsigned char *old_sha1, - int flags, int *type_p) -{ - return lock_ref_sha1_basic(refname, old_sha1, NULL, flags, type_p); -} - /* * Write an entry to the packed-refs file for the specified refname. * If peeled is non-NULL, write it as the entry's peeled value. @@ -181,8 +181,7 @@ extern int is_branch(const char *refname); extern int peel_ref(const char *refname, unsigned char *sha1); /* - * Flags controlling lock_any_ref_for_update(), transaction_update_ref(), - * transaction_create_ref(), etc. + * Flags controlling transaction_update_ref(), transaction_create_ref(), etc. * REF_NODEREF: act on the ref directly, instead of dereferencing * symbolic references. * REF_DELETING: tolerate broken refs @@ -191,12 +190,6 @@ extern int peel_ref(const char *refname, unsigned char *sha1); */ #define REF_NODEREF 0x01 #define REF_DELETING 0x02 -/* - * This function sets errno to something meaningful on failure. - */ -extern struct ref_lock *lock_any_ref_for_update(const char *refname, - const unsigned char *old_sha1, - int flags, int *type_p); /** Reads log for the value of ref during at_time. **/ extern int read_ref_at(const char *refname, unsigned int flags, |