Skip to content

Commit 3825faa

Browse files
committed
chore: remove some dead code
1 parent 13fb9a9 commit 3825faa

File tree

4 files changed

+0
-25
lines changed

4 files changed

+0
-25
lines changed

batch.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package datastore
22

3-
type verb int
4-
53
type op struct {
64
delete bool
75
value []byte

key_test.go

-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package datastore_test
22

33
import (
44
"bytes"
5-
"math/rand"
65
"path"
76
"strings"
87
"testing"
@@ -14,16 +13,6 @@ import (
1413
// Hook up gocheck into the "go test" runner.
1514
func Test(t *testing.T) { TestingT(t) }
1615

17-
func randomString() string {
18-
chars := "abcdefghijklmnopqrstuvwxyz1234567890"
19-
var buf bytes.Buffer
20-
l := rand.Intn(50)
21-
for j := 0; j < l; j++ {
22-
buf.WriteByte(chars[rand.Intn(len(chars))])
23-
}
24-
return buf.String()
25-
}
26-
2716
type KeySuite struct{}
2817

2918
var _ = Suite(&KeySuite{})

query/filter_test.go

-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ import (
55
"testing"
66
)
77

8-
type filterTestCase struct {
9-
filter Filter
10-
keys []string
11-
expect []string
12-
}
13-
148
func testKeyFilter(t *testing.T, f Filter, keys []string, expect []string) {
159
e := make([]Entry, len(keys))
1610
for i, k := range keys {

query/order_test.go

-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ import (
55
"testing"
66
)
77

8-
type orderTestCase struct {
9-
order Order
10-
keys []string
11-
expect []string
12-
}
13-
148
func testKeyOrder(t *testing.T, f Order, keys []string, expect []string) {
159
e := make([]Entry, len(keys))
1610
for i, k := range keys {

0 commit comments

Comments
 (0)