+ remove unused member variable

+ format
This commit is contained in:
artemp 2012-07-25 10:00:58 +01:00
parent f0ada2b284
commit e48057b274

View file

@ -22,33 +22,36 @@
#ifndef PLACEMENTS_DUMMY_HPP #ifndef PLACEMENTS_DUMMY_HPP
#define PLACEMENTS_DUMMY_HPP #define PLACEMENTS_DUMMY_HPP
// mapnik
#include <mapnik/config.hpp> #include <mapnik/config.hpp>
#include <mapnik/text_placements/base.hpp> #include <mapnik/text_placements/base.hpp>
// boost
#include <boost/concept_check.hpp>
namespace mapnik namespace mapnik
{ {
class text_placements_info_dummy; class text_placements_info_dummy;
/** Dummy placement algorithm. Always takes the default value. */ // Dummy placement algorithm. Always takes the default value.
class MAPNIK_DECL text_placements_dummy: public text_placements class MAPNIK_DECL text_placements_dummy: public text_placements
{ {
public: public:
text_placement_info_ptr get_placement_info(double scale_factor) const; text_placement_info_ptr get_placement_info(double scale_factor) const;
friend class text_placement_info_dummy; friend class text_placement_info_dummy;
}; };
/** Placement info object for dummy placement algorithm. Always takes the default value. */ // Placement info object for dummy placement algorithm. Always takes the default value.
class MAPNIK_DECL text_placement_info_dummy : public text_placement_info class MAPNIK_DECL text_placement_info_dummy : public text_placement_info
{ {
public: public:
text_placement_info_dummy(text_placements_dummy const* parent, double scale_factor) text_placement_info_dummy(text_placements_dummy const* parent, double scale_factor)
: text_placement_info(parent, scale_factor), : text_placement_info(parent, scale_factor),
state(0), parent_(parent) {} state(0) {}
bool next(); bool next();
private: private:
unsigned state; unsigned state;
text_placements_dummy const* parent_;
}; };
} //ns mapnik } //ns mapnik