Skip to content

Commit

Permalink
Remove code that does nothing.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Dec 21, 2016
1 parent eee70cb commit ea269ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions filters/private/crop/Point.cpp
Expand Up @@ -63,10 +63,9 @@ Point::Point(const std::string& wkt_or_json, SpatialReference ref)

}

void Point::update(const std::string& wkt_or_json, SpatialReference ref)
void Point::update(const std::string& wkt_or_json)
{

Geometry::update(wkt_or_json, ref);
Geometry::update(wkt_or_json);

int t = GEOSGeomTypeId_r(m_geoserr.ctx(), m_geom.get());
if (t == -1)
Expand Down
3 changes: 1 addition & 2 deletions filters/private/crop/Point.hpp
Expand Up @@ -55,8 +55,7 @@ class PDAL_DLL Point : public Geometry
void clear();


virtual void update(const std::string& wkt_or_json,
SpatialReference ref = SpatialReference());
virtual void update(const std::string& wkt_or_json);

double x;
double y;
Expand Down
4 changes: 2 additions & 2 deletions pdal/Geometry.cpp
Expand Up @@ -56,7 +56,7 @@ Geometry::Geometry(const std::string& wkt_or_json, SpatialReference ref)
, m_srs(ref)
, m_geoserr(geos::ErrorHandler::get())
{
update(wkt_or_json, ref);
update(wkt_or_json);
}


Expand All @@ -69,7 +69,7 @@ Geometry::~Geometry()
}


void Geometry::update(const std::string& wkt_or_json, SpatialReference ref)
void Geometry::update(const std::string& wkt_or_json)
{
bool isJson = wkt_or_json.find("{") != wkt_or_json.npos ||
wkt_or_json.find("}") != wkt_or_json.npos;
Expand Down
3 changes: 1 addition & 2 deletions pdal/Geometry.hpp
Expand Up @@ -98,8 +98,7 @@ class PDAL_DLL Geometry

OGRGeometryH getOGRHandle();

virtual void update(const std::string& wkt_or_json,
SpatialReference ref = SpatialReference());
virtual void update(const std::string& wkt_or_json);

void setSpatialReference( const SpatialReference& ref)
{ m_srs = ref; }
Expand Down

0 comments on commit ea269ec

Please sign in to comment.