diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-09-04 21:27:43 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-06 01:53:51 +0200 |
commit | 2dfbf1bf038a308447d9654fc5c5cf76bf6790dc (patch) | |
tree | 1002b95cd86d0119e0b500e972e4a43086d67330 /src/gui/painting/qpainter.cpp | |
parent | bb419ad87c646af4eff003675be174da5f00758c (diff) |
Remove unused check_gradient function
Found by ICC 14. I wonder how the other compilers didn't detect it.
qpainter.cpp(119): warning #177: function "check_gradient" was declared but never referenced
Change-Id: Ie94c04f1734e6d7bab6b540d763bb6e7c16e4cb9
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'src/gui/painting/qpainter.cpp')
-rw-r--r-- | src/gui/painting/qpainter.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index d12e0ebb15..d36a2d46f8 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -115,12 +115,6 @@ static inline QGradient::CoordinateMode coordinateMode(const QBrush &brush) return QGradient::LogicalMode; } -/* Returns true if the gradient requires stretch to device...*/ -static inline bool check_gradient(const QBrush &brush) -{ - return coordinateMode(brush) == QGradient::StretchToDeviceMode; -} - extern bool qHasPixmapTexture(const QBrush &); static inline bool is_brush_transparent(const QBrush &brush) { |