summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@google.com>2014-12-12 08:57:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-12-22 18:13:15 (GMT)
commit0b1e654801e52243b63b57e27b50acdfe7c8f853 (patch)
tree238eb707fb863d9a097dfa59e7c7ca2e22a1432f /refs.h
parentfa5b1830b0605b39295631f6e167ddb133f2dbde (diff)
downloadgit-0b1e654801e52243b63b57e27b50acdfe7c8f853.zip
git-0b1e654801e52243b63b57e27b50acdfe7c8f853.tar.gz
git-0b1e654801e52243b63b57e27b50acdfe7c8f853.tar.bz2
refs.c: remove unlock_ref/close_ref/commit_ref from the refs api
unlock|close|commit_ref can be made static since there are no more external callers. Signed-off-by: Ronnie Sahlberg <sahlberg@google.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/refs.h b/refs.h
index 99e707b..4bb58b9 100644
--- a/refs.h
+++ b/refs.h
@@ -198,15 +198,6 @@ extern struct ref_lock *lock_any_ref_for_update(const char *refname,
const unsigned char *old_sha1,
int flags, int *type_p);
-/** Close the file descriptor owned by a lock and return the status */
-extern int close_ref(struct ref_lock *lock);
-
-/** Close and commit the ref locked by the lock */
-extern int commit_ref(struct ref_lock *lock);
-
-/** Release any lock taken but not written. **/
-extern void unlock_ref(struct ref_lock *lock);
-
/*
* Setup reflog before using. Set errno to something meaningful on failure.
*/