diff --git a/include/mapnik/png_io.hpp b/include/mapnik/png_io.hpp index 4f116fc25..4e3a1fa46 100644 --- a/include/mapnik/png_io.hpp +++ b/include/mapnik/png_io.hpp @@ -36,9 +36,6 @@ // boost #include -// stl -#include - extern "C" { #include @@ -542,11 +539,9 @@ void save_as_png8_oct(T1 & file, std::vector pal; trees[j].setOffset( static_cast(palette.size())); trees[j].create_palette(pal); - assert(pal.size() <= opts.colors); leftovers = cols[j] - static_cast(pal.size()); cols[j] = static_cast(pal.size()); palette.insert(palette.begin(), pal.begin(), pal.end()); - assert(palette.size() <= 256); } } @@ -684,7 +679,6 @@ void save_as_png8_hex(T1 & file, //transparency values per palette index std::vector pal; tree.create_palette(pal); - assert(int(pal.size()) <= opts.colors); std::vector palette; std::vector alphaTable; for(unsigned i=0; i