diff --git a/include/helpers.h b/include/helpers.h index 9df8c825..f569db52 100644 --- a/include/helpers.h +++ b/include/helpers.h @@ -37,9 +37,6 @@ uint64_t getFileSize(std::string filename); std::vector getNewlineChunks(const std::string &filename, uint64_t chunks); void decompress_string(std::string& output, const char* input, uint32_t inputSize, bool asGzip = false); -double bboxElementFromStr(const std::string& number); - -std::vector parseBox(const std::string& bbox); std::string compress_string(const std::string& str, int compressionlevel = Z_DEFAULT_COMPRESSION, diff --git a/src/helpers.cpp b/src/helpers.cpp index a8861a30..1e43146a 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -5,8 +5,6 @@ #include #include #include -#include -#include #include #include "helpers.h" @@ -25,30 +23,6 @@ using namespace std; -// Bounding box string parsing - -double bboxElementFromStr(const std::string& number) { - try { - return boost::lexical_cast(number); - } catch (boost::bad_lexical_cast&) { - std::cerr << "Failed to parse coordinate " << number << std::endl; - exit(1); - } -} - -// Split bounding box provided as a comma-separated list of coordinates. -std::vector parseBox(const std::string& bbox) { - std::vector bboxParts; - if (!bbox.empty()) { - boost::split(bboxParts, bbox, boost::is_any_of(",")); - if (bboxParts.size() != 4) { - std::cerr << "Bounding box must contain 4 elements: minlon,minlat,maxlon,maxlat" << std::endl; - exit(1); - } - } - return bboxParts; -} - // zlib routines from http://panthema.net/2007/0328-ZLibString.html // Compress a STL string using zlib with given compression level, and return the binary data