]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Removed unused variables spotted by clazy
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 11 Mar 2018 16:14:07 +0000 (17:14 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 11 Mar 2018 16:14:07 +0000 (17:14 +0100)
src/panels/places/placespanel.cpp
src/tests/placesitemmodeltest.cpp

index 216b760381270ae87f309dd9199b2b896f592e22..1f81a1eaa9977c170e46f61f5399cb7da031e326 100644 (file)
@@ -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) {
index ec44c8f31bbac2bfdbdf212e46d04162ac23fcd9..3263537f9e9c36320b28f053fde09cd1defbed28 100644 (file)
@@ -541,7 +541,6 @@ void PlacesItemModelTest::testSystemItems()
 
 void PlacesItemModelTest::testEditBookmark()
 {
-    const QUrl tempUrl = QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::TempLocation));
     QScopedPointer<PlacesItemModel> other(new PlacesItemModel());
 
     createPlaceItem(QStringLiteral("Temporary Dir"), QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::TempLocation)), QString());