OSDN Git Service

remove unused definition in QMotifStyle::drawPrimitive()
authorIvailo Monev <xakepa10@gmail.com>
Sat, 9 Jan 2021 13:48:47 +0000 (15:48 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sat, 9 Jan 2021 13:48:47 +0000 (15:48 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/styles/qmotifstyle.cpp

index 4083852..a177fd3 100644 (file)
@@ -656,7 +656,6 @@ void QMotifStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QP
             cols[4] = &opt->palette.mid().color();
         }
 
-#define CMID *cols[(colspec>>12) & 0xf]
 #define CLEFT *cols[(colspec>>8) & 0xf]
 #define CTOP *cols[(colspec>>4) & 0xf]
 #define CBOT *cols[colspec & 0xf]
@@ -680,7 +679,6 @@ void QMotifStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QP
 
         p->setBrush(saveBrush);
         p->setPen(savePen);
-#undef CMID
 #undef CLEFT
 #undef CTOP
 #undef CBOT