From 31f6ea6809c04599e2016565eee0e8ae255331c3 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 30 Mar 2026 20:01:38 +0000 Subject: network/receivepack/service: Some cleanups --- network/receivepack/service/hook_apply.go | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'network/receivepack/service/hook_apply.go') diff --git a/network/receivepack/service/hook_apply.go b/network/receivepack/service/hook_apply.go index 5bd8f596..97d25009 100644 --- a/network/receivepack/service/hook_apply.go +++ b/network/receivepack/service/hook_apply.go @@ -1,18 +1,5 @@ package service -func buildHookUpdates(commands []Command) []RefUpdate { - updates := make([]RefUpdate, 0, len(commands)) - for _, command := range commands { - updates = append(updates, RefUpdate{ - Name: command.Name, - OldID: command.OldID, - NewID: command.NewID, - }) - } - - return updates -} - func resultForHookRejection(command Command, message string) CommandResult { result := successCommandResult(command) result.Error = message -- cgit v1.3.1-10-gc9f91