aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
Diffstat (limited to 'bucket.go')
-rw-r--r--bucket.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/bucket.go b/bucket.go
index 6cfe1ca..b1c1cc0 100644
--- a/bucket.go
+++ b/bucket.go
@@ -15,13 +15,8 @@ func (b *Bucket) Name() string {
return b.name
}
-// Get retrieves the value for a key in the bucket.
-func (b *Bucket) Get(key []byte) []byte {
- return b.Cursor().Get(key)
-}
-
-// Cursor creates a new cursor for this bucket.
-func (b *Bucket) Cursor() *Cursor {
+// cursor creates a new cursor for this bucket.
+func (b *Bucket) cursor() *Cursor {
return &Cursor{
transaction: b.transaction,
root: b.root,