Clean up obsolete code.

This commit is contained in:
Alex Roitman 2018-10-31 00:40:09 -07:00
parent 18d7398d50
commit 63b41691e6
1 changed files with 1 additions and 6 deletions

View File

@ -371,14 +371,9 @@ func (server *Server) cmdNearby(msg *Message) (res resp.Value, err error) {
if sw.col != nil {
var matched uint32
iter := func(id string, o geojson.Object, fields []float64, dist *float64) bool {
// Calculate distance if we need to
distance := 0.0
if s.distance {
if dist != nil {
distance = *dist
} else {
distance = o.Distance(s.obj)
}
distance = *dist
}
return sw.writeObject(ScanWriterParams{
id: id,