mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-08 03:00:26 +01:00
Removed dead code.
This commit is contained in:
parent
93d4aedffa
commit
3fc89ad0f5
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user