]> git.lyx.org Git - features.git/commitdiff
Remove unused private field from Painter
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 13 Sep 2017 10:38:33 +0000 (12:38 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 13 Sep 2017 13:02:17 +0000 (15:02 +0200)
Clang is good at seeing those, gcc is not.

src/frontends/Painter.h

index 79c907d23f6a97dfaecd631401e6cdc80bde7ec9..17253b2f44dae76fb7d5eebcb55f01bd5d28eb51 100644 (file)
@@ -49,7 +49,7 @@ namespace frontend {
  */
 class Painter {
 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;
 
@@ -180,8 +180,6 @@ public:
        /// draws a wavy line that can be used for underlining.
        virtual void wavyHorizontalLine(int x, int y, int width, ColorCode col) = 0;
 private:
-       ///
-       bool drawing_enabled_;
        /// Ratio between physical pixels and device-independent pixels
        double pixel_ratio_;
 };