Removed dead code.

This commit is contained in:
Sascha L. Teichmann 2015-07-23 21:14:35 +02:00
parent 93d4aedffa
commit 3fc89ad0f5
1 changed files with 0 additions and 9 deletions

View File

@ -441,8 +441,6 @@ func (ss *SqliteSession) plainSpatialQuery(first, second []byte, done chan struc
}
defer rows.Close()
count := 0
for rows.Next() {
var key int64
var data []byte
@ -460,7 +458,6 @@ func (ss *SqliteSession) plainSpatialQuery(first, second []byte, done chan struc
case <-done:
return false
}
count++
}
if err = rows.Err(); err != nil {
log.Printf("Error in range query: %s\n", err)
@ -487,9 +484,3 @@ func (ss *SqliteSession) plainSpatialQuery(first, second []byte, done chan struc
return
}
func clone(a []byte) []byte {
b := make([]byte, len(a))
copy(b, a)
return b
}