OSDN Git Service

remove now unused qt_intensity function
authorIvailo Monev <xakepa10@laimg.moc>
Wed, 26 Jun 2019 12:00:46 +0000 (12:00 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Wed, 26 Jun 2019 12:00:46 +0000 (12:00 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/styles/qcommonstyle.cpp

index ecf48a9..b64a66b 100644 (file)
@@ -5643,12 +5643,6 @@ QIcon QCommonStyle::standardIcon(StandardPixmap standardicon, const QStyleOption
     return icon;
 }
 
-static inline uint qt_intensity(uint r, uint g, uint b)
-{
-    // 30% red, 59% green, 11% blue
-    return (77 * r + 150 * g + 28 * b) / 255;
-}
-
 // in qpixmapfilter.cpp
 extern Q_GUI_EXPORT void qt_grayscale(const QImage &image, QImage &dest, const QRect& rect);