diff --git a/cmd/mtredisalize/sqlite.go b/cmd/mtredisalize/sqlite.go index e72b890..9f827e5 100644 --- a/cmd/mtredisalize/sqlite.go +++ b/cmd/mtredisalize/sqlite.go @@ -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 -}