diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-08-26 20:32:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-26 20:32:22 +0200 |
commit | 2ff26d228600848ecf3d44b3796beee310ebcccf (patch) | |
tree | 1753564cddbf3968d05dec56308fd82e9ee47213 /refs | |
parent | Merge branch 'tb/pseudo-merge-bitmap-fixes' (diff) | |
parent | diff-lib: drop unused index argument from get_stat_data() (diff) | |
download | git-2ff26d228600848ecf3d44b3796beee310ebcccf.tar.xz git-2ff26d228600848ecf3d44b3796beee310ebcccf.zip |
Merge branch 'jk/drop-unused-parameters'
Drop unused parameters from functions.
* jk/drop-unused-parameters:
diff-lib: drop unused index argument from get_stat_data()
ref-filter: drop unused parameters from email_atom_option_parser()
pack-bitmap: drop unused parameters from select_pseudo_merges()
pack-bitmap: load writer config from repository parameter
refs: drop some unused parameters from create_symref_lock()
Diffstat (limited to 'refs')
-rw-r--r-- | refs/files-backend.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c index 8d6ec9458d..1cff65f6ae 100644 --- a/refs/files-backend.c +++ b/refs/files-backend.c @@ -1961,9 +1961,8 @@ static int create_ref_symlink(struct ref_lock *lock, const char *target) return ret; } -static int create_symref_lock(struct files_ref_store *refs, - struct ref_lock *lock, const char *refname, - const char *target, struct strbuf *err) +static int create_symref_lock(struct ref_lock *lock, const char *target, + struct strbuf *err) { if (!fdopen_lock_file(&lock->lk, "w")) { strbuf_addf(err, "unable to fdopen %s: %s", @@ -2579,8 +2578,7 @@ static int lock_ref_for_update(struct files_ref_store *refs, } if (update->new_target && !(update->flags & REF_LOG_ONLY)) { - if (create_symref_lock(refs, lock, update->refname, - update->new_target, err)) { + if (create_symref_lock(lock, update->new_target, err)) { ret = TRANSACTION_GENERIC_ERROR; goto out; } |