mirror of https://github.com/tidwall/tile38.git
Clean up obsolete code.
This commit is contained in:
parent
18d7398d50
commit
63b41691e6
|
@ -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)
|
||||
}
|
||||
}
|
||||
return sw.writeObject(ScanWriterParams{
|
||||
id: id,
|
||||
|
|
Loading…
Reference in New Issue