move cmp to where it's used
This commit is contained in:
parent
680bb244d2
commit
678c7c843a
2 changed files with 4 additions and 4 deletions
|
|
@ -34,10 +34,6 @@ type Iterator struct {
|
|||
err error
|
||||
}
|
||||
|
||||
func cmp(a, b int64) int {
|
||||
return int(a - b)
|
||||
}
|
||||
|
||||
func NewIterator(tree *b.Tree, data string, qs *QuadStore) *Iterator {
|
||||
iter, err := tree.SeekFirst()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue