aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divepicturewidget.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-25 09:13:35 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-25 09:13:35 -0800
commit23cb9b49c23c80eeafa59925e42e2c52c6eb6a72 (patch)
treebcb4207c79e27df7338c8162f62c04ff38cf35f4 /desktop-widgets/divepicturewidget.cpp
parentdabb6b2033a22d02c8dad7313ea12515fd893033 (diff)
downloadsubsurface-23cb9b49c23c80eeafa59925e42e2c52c6eb6a72.tar.gz
Remove unused code
Reported-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/divepicturewidget.cpp')
-rw-r--r--desktop-widgets/divepicturewidget.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/desktop-widgets/divepicturewidget.cpp b/desktop-widgets/divepicturewidget.cpp
index a3a3c7a65..c612ab6d4 100644
--- a/desktop-widgets/divepicturewidget.cpp
+++ b/desktop-widgets/divepicturewidget.cpp
@@ -47,11 +47,5 @@ void DivePictureWidget::mousePressEvent(QMouseEvent *event)
drag->setPixmap(pixmap);
drag->setHotSpot(event->pos() - rectForIndex(indexAt(event->pos())).topLeft());
- QPixmap tempPixmap = pixmap;
- QPainter painter;
- painter.begin(&tempPixmap);
- painter.fillRect(pixmap.rect(), QColor(127, 127, 127, 127));
- painter.end();
-
drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction);
}