lock_ref_sha1_basic: remove unused parameter "plen".
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Sep 22, 2006 at 21:41 UTC
5fd6f5cffc7b8bc679c922b8ff0b1cd35bb1a30c
1 file changed
+3
-6
refs.c
+3
-6
@@ -447,9 +447,7 @@ static struct ref_lock *verify_lock(struct ref_lock *lock,
447
return lock;
448
}
449
450
-static struct ref_lock *lock_ref_sha1_basic(const char *ref,
451
- int plen,
452
- const unsigned char *old_sha1, int mustexist)
450
+static struct ref_lock *lock_ref_sha1_basic(const char *ref, const unsigned char *old_sha1, int mustexist)
451
{
452
char *ref_file;
453
const char *orig_ref = ref;
@@ -489,14 +487,13 @@ struct ref_lock *lock_ref_sha1(const char *ref,
487
if (check_ref_format(ref))
488
return NULL;
489
strcpy(refpath, mkpath("refs/%s", ref));
492
- return lock_ref_sha1_basic(refpath, strlen(refpath),
493
- old_sha1, mustexist);
490
+ return lock_ref_sha1_basic(refpath, old_sha1, mustexist);
491
}
492
493
struct ref_lock *lock_any_ref_for_update(const char *ref,
494
const unsigned char *old_sha1, int mustexist)
495
{
499
- return lock_ref_sha1_basic(ref, strlen(ref), old_sha1, mustexist);
496
+ return lock_ref_sha1_basic(ref, old_sha1, mustexist);
497
}
498
499
void unlock_ref(struct ref_lock *lock)