From f7c5ac42d27d91513a2a0b25aeaa8a30c9b75d60 Mon Sep 17 00:00:00 2001 From: Artem Vorotnikov Date: Sat, 9 Jan 2021 08:29:04 +0300 Subject: [PATCH] Remove unused fields from remoteCursor (#1437) --- ethdb/kv_remote.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ethdb/kv_remote.go b/ethdb/kv_remote.go index 3f0a1b87e..ec2193383 100644 --- a/ethdb/kv_remote.go +++ b/ethdb/kv_remote.go @@ -62,9 +62,7 @@ type remoteTx struct { type remoteCursor struct { initialized bool id uint32 - prefetch uint32 ctx context.Context - prefix []byte stream remote.KV_TxClient tx *remoteTx bucketName string @@ -268,12 +266,10 @@ func (tx *remoteTx) Rollback() { } func (c *remoteCursor) Prefix(v []byte) Cursor { - c.prefix = v return c } func (c *remoteCursor) Prefetch(v uint) Cursor { - c.prefetch = uint32(v) return c } @@ -600,11 +596,6 @@ func (tx *remoteTx) CursorDupSort(bucket string) CursorDupSort { return &remoteCursorDupSort{remoteCursor: tx.Cursor(bucket).(*remoteCursor)} } -func (c *remoteCursorDupSort) Prefetch(v uint) Cursor { - c.prefetch = uint32(v) - return c -} - //func (c *remoteCursorDupSort) initCursor() error { // if c.initialized { // return nil