aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/packfile/delta_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format/packfile/delta_test.go')
-rw-r--r--plumbing/format/packfile/delta_test.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/plumbing/format/packfile/delta_test.go b/plumbing/format/packfile/delta_test.go
index 4ef9b70..43253b0 100644
--- a/plumbing/format/packfile/delta_test.go
+++ b/plumbing/format/packfile/delta_test.go
@@ -12,11 +12,6 @@ type DeltaSuite struct {
var _ = Suite(&DeltaSuite{})
-type piece struct {
- val string
- times int
-}
-
type deltaTest struct {
description string
base []piece
@@ -80,14 +75,3 @@ func (s *DeltaSuite) TestAddDelta(c *C) {
c.Assert(result, DeepEquals, targetBuf)
}
}
-
-func genBytes(elements []piece) []byte {
- var result []byte
- for _, e := range elements {
- for i := 0; i < e.times; i++ {
- result = append(result, e.val...)
- }
- }
-
- return result
-}