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 {
|
if sw.col != nil {
|
||||||
var matched uint32
|
var matched uint32
|
||||||
iter := func(id string, o geojson.Object, fields []float64, dist *float64) bool {
|
iter := func(id string, o geojson.Object, fields []float64, dist *float64) bool {
|
||||||
// Calculate distance if we need to
|
|
||||||
distance := 0.0
|
distance := 0.0
|
||||||
if s.distance {
|
if s.distance {
|
||||||
if dist != nil {
|
distance = *dist
|
||||||
distance = *dist
|
|
||||||
} else {
|
|
||||||
distance = o.Distance(s.obj)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return sw.writeObject(ScanWriterParams{
|
return sw.writeObject(ScanWriterParams{
|
||||||
id: id,
|
id: id,
|
||||||
|
|
Loading…
Reference in New Issue