summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2018-03-11 17:14:07 +0100
committerElvis Angelaccio <[email protected]>2018-03-11 17:14:07 +0100
commit69239fdf410c82429d41239e7a07ef043a6bf59c (patch)
tree30ffc84d3f3ace8325b0eaa2df64bfd6a8af4066
parentb46d57d5fbad16af87a3a988bd8d7a9e8b53f48b (diff)
Removed unused variables spotted by clazy
-rw-r--r--src/panels/places/placespanel.cpp2
-rw-r--r--src/tests/placesitemmodeltest.cpp1
2 files changed, 0 insertions, 3 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp
index 216b760..1f81a1e 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 ec44c8f..3263537 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<PlacesItemModel> other(new PlacesItemModel());
createPlaceItem(QStringLiteral("Temporary Dir"), QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::TempLocation)), QString());