aboutsummaryrefslogtreecommitdiff
path: root/sys.go
diff options
context:
space:
mode:
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