Skip to content

Commit 2871ee4

Browse files
committed
remove unused code
1 parent 22ab6fc commit 2871ee4

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cmd/pbm-speed-test/speedt.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ func (r *Rand) WriteTo(w io.Writer) (int64, error) {
8080
type Collection struct {
8181
size Byte
8282
c *mongo.Collection
83-
84-
dataset [][]byte
8583
}
8684

8785
func NewCollection(size Byte, cn *mongo.Client, namespace string) (*Collection, error) {
@@ -93,11 +91,6 @@ func NewCollection(size Byte, cn *mongo.Client, namespace string) (*Collection,
9391
r := &Collection{
9492
size: size,
9593
c: cn.Database(ns[0]).Collection(ns[1]),
96-
97-
dataset: make([][]byte, len(dataset)),
98-
}
99-
for i, s := range dataset {
100-
r.dataset[i] = []byte(s)
10194
}
10295
return r, nil
10396
}

0 commit comments

Comments
 (0)