Remove unused private field from Painter

Clang is good at seeing those, gcc is not.
This commit is contained in:
Jean-Marc Lasgouttes 2017-09-13 12:38:33 +02:00
parent c39d673d2f
commit bef0a9137f

View File

@ -49,7 +49,7 @@ namespace frontend {
*/ */
class Painter { class Painter {
public: public:
Painter(double pixel_ratio) : drawing_enabled_(true), pixel_ratio_(pixel_ratio) {} Painter(double pixel_ratio) : pixel_ratio_(pixel_ratio) {}
static const int thin_line; static const int thin_line;
@ -180,8 +180,6 @@ public:
/// draws a wavy line that can be used for underlining. /// draws a wavy line that can be used for underlining.
virtual void wavyHorizontalLine(int x, int y, int width, ColorCode col) = 0; virtual void wavyHorizontalLine(int x, int y, int width, ColorCode col) = 0;
private: private:
///
bool drawing_enabled_;
/// Ratio between physical pixels and device-independent pixels /// Ratio between physical pixels and device-independent pixels
double pixel_ratio_; double pixel_ratio_;
}; };