diff options
| author | Elvis Angelaccio <[email protected]> | 2018-03-11 17:14:07 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2018-03-11 17:14:07 +0100 |
| commit | 69239fdf410c82429d41239e7a07ef043a6bf59c (patch) | |
| tree | 30ffc84d3f3ace8325b0eaa2df64bfd6a8af4066 /src | |
| parent | b46d57d5fbad16af87a3a988bd8d7a9e8b53f48b (diff) | |
Removed unused variables spotted by clazy
Diffstat (limited to 'src')
| -rw-r--r-- | src/panels/places/placespanel.cpp | 2 | ||||
| -rw-r--r-- | src/tests/placesitemmodeltest.cpp | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index 216b76038..1f81a1eaa 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 ec44c8f31..3263537f9 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()); |
