summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/query/tree/location.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/searchlib/src/vespa/searchlib/query/tree/location.cpp b/searchlib/src/vespa/searchlib/query/tree/location.cpp
index 47ba6171d7e..48f45c4ceca 100644
--- a/searchlib/src/vespa/searchlib/query/tree/location.cpp
+++ b/searchlib/src/vespa/searchlib/query/tree/location.cpp
@@ -48,7 +48,6 @@ Location::getOldFormatString() const
{
// we need to product what search::common::GeoLocationParser can parse
vespalib::asciistream buf;
-#if 1
if (has_point) {
buf << "(2" // dimensionality
<< "," << point.x
@@ -67,24 +66,6 @@ Location::getOldFormatString() const
<< "," << bounding_box.y.hi
<< "]" ;
}
-#else
- buf << "query::Location{";
- if (has_point) {
- buf << "point=[" << point.x << "," << point.y << "]";
- if (has_radius()) {
- buf << ",radius=" << radius;
- }
- if (x_aspect.active()) {
- buf << ",x_aspect=" << x_aspect.multiplier;
- }
- }
- if (bounding_box.active()) {
- if (has_point) buf << ",";
- buf << "bb.x=[" << bounding_box.x.lo << "," << bounding_box.x.hi << "],";
- buf << "bb.y=[" << bounding_box.y.lo << "," << bounding_box.y.hi << "]";
- }
- buf << "}";
-#endif
return buf.str();
}