mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Unexport b.TreeNew
This commit is contained in:
parent
9a1f348580
commit
6fbd373256
2 changed files with 4 additions and 4 deletions
|
|
@ -233,9 +233,9 @@ func (l *d) mvR(r *d, c int) {
|
|||
|
||||
// ----------------------------------------------------------------------- Tree
|
||||
|
||||
// TreeNew returns a newly created, empty Tree. The compare function is used
|
||||
// treeNew returns a newly created, empty Tree. The compare function is used
|
||||
// for key collation.
|
||||
func TreeNew(cmp Cmp) *tree {
|
||||
func treeNew(cmp Cmp) *tree {
|
||||
return btTPool.get(cmp)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ type bTreeContainers struct {
|
|||
|
||||
func newBTreeContainers() *bTreeContainers {
|
||||
return &bTreeContainers{
|
||||
tree: TreeNew(cmp),
|
||||
tree: treeNew(cmp),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -161,7 +161,7 @@ func (btc *bTreeContainers) Size() int {
|
|||
}
|
||||
|
||||
func (btc *bTreeContainers) Reset() {
|
||||
btc.tree = TreeNew(cmp)
|
||||
btc.tree = treeNew(cmp)
|
||||
btc.lastKey = 0
|
||||
btc.lastContainer = nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue