aboutsummaryrefslogtreecommitdiff
path: root/receivepack/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'receivepack/commands.go')
-rw-r--r--receivepack/commands.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/receivepack/commands.go b/receivepack/commands.go
deleted file mode 100644
index 9c38ec73..00000000
--- a/receivepack/commands.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package receivepack
-
-import (
- protoreceive "codeberg.org/lindenii/furgit/network/protocol/v0v1/server/receivepack"
- "codeberg.org/lindenii/furgit/receivepack/service"
-)
-
-func translateCommands(commands []protoreceive.Command) []service.Command {
- out := make([]service.Command, 0, len(commands))
- for _, command := range commands {
- out = append(out, service.Command{
- OldID: command.OldID,
- NewID: command.NewID,
- Name: command.Name,
- })
- }
-
- return out
-}