aboutsummaryrefslogtreecommitdiff
path: root/sys.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-02-05 21:50:15 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-02-05 21:50:15 -0700
commit4820312de29f446152fce216c17a696576e89d78 (patch)
tree31e748c7f977071af779aaa42a80ff728b495da6 /sys.go
parentAdd pre-alpha badge. (diff)
parentFix quick tests. (diff)
downloaddedo-4820312de29f446152fce216c17a696576e89d78.tar.gz
dedo-4820312de29f446152fce216c17a696576e89d78.tar.xz
Merge pull request #7 from benbjohnson/delete
RWTransaction.Delete()
Diffstat (limited to 'sys.go')
-rw-r--r--sys.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys.go b/sys.go
index cf15413..ec1b858 100644
--- a/sys.go
+++ b/sys.go
@@ -25,16 +25,6 @@ func (s *sys) get(key string) *bucket {
return s.buckets[key]
}
-// getByRoot retrieves a bucket by root page id.
-func (s *sys) getByRoot(pgid pgid) *bucket {
- for _, b := range s.buckets {
- if b.root == pgid {
- return b
- }
- }
- panic("root not found")
-}
-
// put sets a new value for a bucket.
func (s *sys) put(key string, b *bucket) {
s.buckets[key] = b