From fb68a28654067e376f83a624ada985b74c20d96e Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Wed, 17 Jun 2020 23:03:03 +0000 Subject: [PATCH] remove unused QX11Data::PatternFills::opaque member Signed-off-by: Ivailo Monev --- src/gui/kernel/qt_x11_p.h | 1 - src/gui/painting/qpaintengine_x11.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/gui/kernel/qt_x11_p.h b/src/gui/kernel/qt_x11_p.h index 0937e3242..5c2bb5ede 100644 --- a/src/gui/kernel/qt_x11_p.h +++ b/src/gui/kernel/qt_x11_p.h @@ -283,7 +283,6 @@ struct QX11Data XRenderColor bg_color; int screen; int style; - bool opaque; Picture picture; } pattern_fills[pattern_fill_count]; Picture getSolidFill(int screen, const QColor &c); diff --git a/src/gui/painting/qpaintengine_x11.cpp b/src/gui/painting/qpaintengine_x11.cpp index d97f0766f..6c4e3f70e 100644 --- a/src/gui/painting/qpaintengine_x11.cpp +++ b/src/gui/painting/qpaintengine_x11.cpp @@ -264,7 +264,6 @@ static Picture getPatternFill(int screen, const QBrush &b) for (int i = 0; i < qt_x11Data->pattern_fill_count; ++i) { if (qt_x11Data->pattern_fills[i].screen == screen - && qt_x11Data->pattern_fills[i].opaque == false && qt_x11Data->pattern_fills[i].style == b.style() && qt_x11Data->pattern_fills[i].color.alpha == color.alpha && qt_x11Data->pattern_fills[i].color.red == color.red @@ -297,7 +296,6 @@ static Picture getPatternFill(int screen, const QBrush &b) qt_x11Data->pattern_fills[i].screen = screen; qt_x11Data->pattern_fills[i].color = color; qt_x11Data->pattern_fills[i].bg_color = bg_color; - qt_x11Data->pattern_fills[i].opaque = false; qt_x11Data->pattern_fills[i].style = b.style(); XRenderFillRectangle(qt_x11Data->display, PictOpSrc, qt_x11Data->pattern_fills[i].picture, &bg_color, 0, 0, 8, 8); -- 2.11.0