remove unused clipper converter

This commit is contained in:
Dane Springmeyer 2013-09-24 21:03:38 -07:00
parent 6f4ea674d7
commit 67b2651527

View file

@ -60,7 +60,6 @@
#include "agg_conv_stroke.h" #include "agg_conv_stroke.h"
#include "agg_conv_dash.h" #include "agg_conv_dash.h"
#include "agg_conv_transform.h" #include "agg_conv_transform.h"
#include "agg_conv_clipper.h"
#include "agg_path_storage.h" #include "agg_path_storage.h"
// stl // stl
@ -71,7 +70,6 @@ namespace mapnik {
struct transform_tag {}; struct transform_tag {};
struct clip_line_tag {}; struct clip_line_tag {};
struct clip_poly_tag {}; struct clip_poly_tag {};
struct clipper_tag {};
struct close_poly_tag {}; struct close_poly_tag {};
struct smooth_tag {}; struct smooth_tag {};
struct simplify_tag {}; struct simplify_tag {};
@ -192,26 +190,6 @@ struct converter_traits<T,mapnik::clip_poly_tag>
} }
}; };
template <typename T>
struct converter_traits<T,mapnik::clipper_tag>
{
typedef T geometry_type;
typedef typename agg::conv_clipper<geometry_type,agg::path_storage> conv_type;
template <typename Args>
static void setup(geometry_type & geom, Args const& args)
{
typename boost::mpl::at<Args,boost::mpl::int_<0> >::type box = boost::fusion::at_c<0>(args);
agg::path_storage * ps = new agg::path_storage(); // FIXME: this will leak memory!
ps->move_to(box.minx(),box.miny());
ps->line_to(box.minx(),box.maxy());
ps->line_to(box.maxx(),box.maxy());
ps->line_to(box.maxx(),box.miny());
ps->close_polygon();
geom.attach2(*ps, agg::clipper_non_zero);
//geom.reverse(true);
}
};
template <typename T> template <typename T>
struct converter_traits<T,mapnik::close_poly_tag> struct converter_traits<T,mapnik::close_poly_tag>
{ {