refs.c: remove lock_ref_sha1
commit558929fc8022523cfb099005a048bde883220a5d
authorRonnie Sahlberg <sahlberg@google.com>
Tue, 29 Apr 2014 22:45:52 +0000 (29 15:45 -0700)
committerJonathan Nieder <jrnieder@gmail.com>
Tue, 2 Sep 2014 20:45:42 +0000 (2 13:45 -0700)
tree51ef995b658433352875f1b575f643def56a57db
parenta8f475788fc8685ff1f4efcb418101a4905fd364
refs.c: remove lock_ref_sha1

lock_ref_sha1 was only called from one place in refs.c and only provided
a check that the refname was sane before adding back the initial "refs/"
part of the ref path name, the initial "refs/" that this caller had already
stripped off before calling lock_ref_sha1.

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
refs.c