refs.c: remove lock_ref_sha1
commitcba12021c3c932e42de838d0fc05d60b93790599
authorRonnie Sahlberg <sahlberg@google.com>
Tue, 29 Apr 2014 22:45:52 +0000 (29 15:45 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Sep 2014 17:04:17 +0000 (3 10:04 -0700)
tree51ef995b658433352875f1b575f643def56a57db
parent04ad6223ec1163163c4f39308149bee852ee245f
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c