Remove debugging outputs, fix missing semicolon.

This commit is contained in:
Daniel Patterson 2015-06-17 20:54:44 -07:00
parent 192495ce21
commit 3059cbf231
3 changed files with 1 additions and 9 deletions

View file

@ -65,9 +65,7 @@ inline boost::optional<std::string> type_from_bytes(char const* data, size_t siz
// NOTE: Limit search to first 300 bytes. Totally arbitrary, but don't
// want to search through whole buffer
std::cout << "Starting svg test" << std::endl;
const size_t max_svg_search = std::min(static_cast<size_t>(300), size);
std::cout << "Searching max " << max_svg_search << " bytes " << std::endl;
for(int i=0; i < static_cast<signed>(max_svg_search)-4; i++)
{
if (data[i] == '<' &&
@ -78,7 +76,6 @@ inline boost::optional<std::string> type_from_bytes(char const* data, size_t siz
return result_type("svg");
}
}
std::cout << "Did not find <svg" << std::endl;
return result_type();
}

View file

@ -140,9 +140,6 @@ svg_reader<T>::~svg_reader() {}
template <typename T>
void svg_reader<T>::init()
{
std::cout << "******* initing svg reader" << std::endl;
using namespace mapnik::svg;
svg_path_ptr marker_path(std::make_shared<svg_storage_type>());
vertex_stl_adapter<svg_path_storage> stl_storage(marker_path->source());
@ -160,8 +157,6 @@ void svg_reader<T>::init()
width_=svg.width();
height_=svg.height();
std::cout << "******* done svg reader" << std::endl;
}
template <typename T>

View file

@ -62,7 +62,7 @@ SECTION("svg_blank")
mapnik::image_rgba8 raw = im.get<mapnik::image_rgba8>();
std::string pngdata = mapnik::save_to_string<mapnik::image_rgba8>(raw,"png");
CHECK(pngdata.length() == 1270 )
CHECK(pngdata.length() == 1270 );
} // END SECTION