files-backend: drop refs parameter from split_symref_update()
This parameter was added in fcc42ea0c9 (split_symref_update(): add a files_ref_store argument, 2016-09-04) without comment, but never used. The splitting is purely mechanical, and doesn't depend on the particular ref-store. Let's drop this parameter in the name of simplicity. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Feb 14, 2019 at 00:50 UTC
10dee40ed3f6f091be271b45191a40aa560f33bf
1 file changed
+2
-3
refs/files-backend.c
+2
-3
@@ -2254,8 +2254,7 @@ static int split_head_update(struct ref_update *update,
2254
* Note that the new update will itself be subject to splitting when
2255
* the iteration gets to it.
2256
*/
2257
-static int split_symref_update(struct files_ref_store *refs,
2258
- struct ref_update *update,
2257
+static int split_symref_update(struct ref_update *update,
2258
const char *referent,
2259
struct ref_transaction *transaction,
2260
struct string_list *affected_refnames,
@@ -2449,7 +2448,7 @@ static int lock_ref_for_update(struct files_ref_store *refs,
2448
* of processing the split-off update, so we
2449
* don't have to do it here.
2450
*/
2452
- ret = split_symref_update(refs, update,
2451
+ ret = split_symref_update(update,
2452
referent.buf, transaction,
2453
affected_refnames, err);
2454
if (ret)