From 69239fdf410c82429d41239e7a07ef043a6bf59c Mon Sep 17 00:00:00 2001 From: Elvis Angelaccio Date: Sun, 11 Mar 2018 17:14:07 +0100 Subject: [PATCH] Removed unused variables spotted by clazy --- src/panels/places/placespanel.cpp | 2 -- src/tests/placesitemmodeltest.cpp | 1 - 2 files changed, 3 deletions(-) diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index 216b760381..1f81a1eaa9 100644 --- a/src/panels/places/placespanel.cpp +++ b/src/panels/places/placespanel.cpp @@ -175,8 +175,6 @@ void PlacesPanel::slotItemContextMenuRequested(int index, const QPointF& pos) QAction* teardownAction = nullptr; QAction* ejectAction = nullptr; - const QString label = item->text(); - const bool isDevice = !item->udi().isEmpty(); const bool isTrash = (item->url().scheme() == QLatin1String("trash")); if (isDevice) { diff --git a/src/tests/placesitemmodeltest.cpp b/src/tests/placesitemmodeltest.cpp index ec44c8f31b..3263537f9e 100644 --- a/src/tests/placesitemmodeltest.cpp +++ b/src/tests/placesitemmodeltest.cpp @@ -541,7 +541,6 @@ void PlacesItemModelTest::testSystemItems() void PlacesItemModelTest::testEditBookmark() { - const QUrl tempUrl = QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::TempLocation)); QScopedPointer other(new PlacesItemModel()); createPlaceItem(QStringLiteral("Temporary Dir"), QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::TempLocation)), QString());