Skip to content

Commit

Permalink
chore: remove some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Apr 6, 2019
1 parent 13fb9a9 commit 3825faa
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 25 deletions.
2 changes: 0 additions & 2 deletions batch.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package datastore

type verb int

type op struct {
delete bool
value []byte
Expand Down
11 changes: 0 additions & 11 deletions key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package datastore_test

import (
"bytes"
"math/rand"
"path"
"strings"
"testing"
Expand All @@ -14,16 +13,6 @@ import (
// Hook up gocheck into the "go test" runner.
func Test(t *testing.T) { TestingT(t) }

func randomString() string {
chars := "abcdefghijklmnopqrstuvwxyz1234567890"
var buf bytes.Buffer
l := rand.Intn(50)
for j := 0; j < l; j++ {
buf.WriteByte(chars[rand.Intn(len(chars))])
}
return buf.String()
}

type KeySuite struct{}

var _ = Suite(&KeySuite{})
Expand Down
6 changes: 0 additions & 6 deletions query/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import (
"testing"
)

type filterTestCase struct {
filter Filter
keys []string
expect []string
}

func testKeyFilter(t *testing.T, f Filter, keys []string, expect []string) {
e := make([]Entry, len(keys))
for i, k := range keys {
Expand Down
6 changes: 0 additions & 6 deletions query/order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import (
"testing"
)

type orderTestCase struct {
order Order
keys []string
expect []string
}

func testKeyOrder(t *testing.T, f Order, keys []string, expect []string) {
e := make([]Entry, len(keys))
for i, k := range keys {
Expand Down

0 comments on commit 3825faa

Please sign in to comment.