mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-01-25 23:50:22 +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()
|
defer rows.Close()
|
||||||
|
|
||||||
count := 0
|
|
||||||
|
|
||||||
for rows.Next() {
|
for rows.Next() {
|
||||||
var key int64
|
var key int64
|
||||||
var data []byte
|
var data []byte
|
||||||
@ -460,7 +458,6 @@ func (ss *SqliteSession) plainSpatialQuery(first, second []byte, done chan struc
|
|||||||
case <-done:
|
case <-done:
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
count++
|
|
||||||
}
|
}
|
||||||
if err = rows.Err(); err != nil {
|
if err = rows.Err(); err != nil {
|
||||||
log.Printf("Error in range query: %s\n", err)
|
log.Printf("Error in range query: %s\n", err)
|
||||||
@ -487,9 +484,3 @@ func (ss *SqliteSession) plainSpatialQuery(first, second []byte, done chan struc
|
|||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func clone(a []byte) []byte {
|
|
||||||
b := make([]byte, len(a))
|
|
||||||
copy(b, a)
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user