hold_locked_index(): move from lockfile.c to read-cache.c
[git/git.git] / lockfile.c
index b2f5d36..63f4e94 100644 (file)
@@ -340,14 +340,6 @@ int commit_lock_file(struct lock_file *lk)
        return err;
 }
 
-int hold_locked_index(struct lock_file *lk, int die_on_error)
-{
-       return hold_lock_file_for_update(lk, get_index_file(),
-                                        die_on_error
-                                        ? LOCK_DIE_ON_ERROR
-                                        : 0);
-}
-
 void rollback_lock_file(struct lock_file *lk)
 {
        if (!lk->active)