aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/protocol/packp/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/protocol/packp/common.go')
-rw-r--r--plumbing/protocol/packp/common.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/plumbing/protocol/packp/common.go b/plumbing/protocol/packp/common.go
index c4b44f7..3d7786b 100644
--- a/plumbing/protocol/packp/common.go
+++ b/plumbing/protocol/packp/common.go
@@ -1,7 +1,5 @@
package packp
-import "bytes"
-
type stateFn func() stateFn
const (
@@ -31,15 +29,3 @@ var (
deepenSince = []byte("deepen-since ")
deepenReference = []byte("deepen-not ")
)
-
-// Capabilities are a single string or a name=value.
-// Even though we are only going to read at moust 1 value, we return
-// a slice of values, as Capability.Add receives that.
-func readCapability(data []byte) (name string, values []string) {
- pair := bytes.SplitN(data, []byte{'='}, 2)
- if len(pair) == 2 {
- values = append(values, string(pair[1]))
- }
-
- return string(pair[0]), values
-}