Fix warning about unused variable

QPoint has no side-effects so it's safe to remove.

 main.cpp:214:12: warning: unused variable 'gradCenter' [-Wunused-variable]

Change-Id: I27b55fdf514247549455fffd14b179b3a6a08617
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
This commit is contained in:
Thiago Macieira 2017-04-01 21:19:24 -07:00
parent 0dc450ec22
commit e9b87c0b1c

View File

@ -211,7 +211,6 @@ void QWaylandBradientDecoration::paint(QPaintDevice *device)
p.setRenderHint(QPainter::Antialiasing);
// Title bar
QPoint gradCenter(top.center()+ QPoint(30, 60));
QLinearGradient grad(top.topLeft(), top.bottomLeft());
QColor base(m_backgroundColor);
grad.setColorAt(0, base.lighter(100));