Merge pull request #257 from neonstalwart/mempory-cmp

move cmp to where it's used
This commit is contained in:
Barak Michener 2015-05-27 18:23:23 -04:00
commit 7c0d8b28b0
3 changed files with 6 additions and 6 deletions

View file

@ -14,8 +14,8 @@ install:
# Google App Engine dependencies
- cd ..
- wget https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.19.zip
- unzip -q go_appengine_sdk_linux_amd64-1.9.19.zip
- wget https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.20.zip
- unzip -q go_appengine_sdk_linux_amd64-1.9.20.zip
- export PATH=$PATH:$PWD/go_appengine/
- cd cayley

View file

@ -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 {

View file

@ -35,6 +35,10 @@ func init() {
}, nil, nil)
}
func cmp(a, b int64) int {
return int(a - b)
}
type QuadDirectionIndex struct {
index [4]map[int64]*b.Tree
}