mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
Removed unused variables spotted by clazy
This commit is contained in:
parent
b46d57d5fb
commit
69239fdf41
|
@ -175,8 +175,6 @@ void PlacesPanel::slotItemContextMenuRequested(int index, const QPointF& pos)
|
||||||
QAction* teardownAction = nullptr;
|
QAction* teardownAction = nullptr;
|
||||||
QAction* ejectAction = nullptr;
|
QAction* ejectAction = nullptr;
|
||||||
|
|
||||||
const QString label = item->text();
|
|
||||||
|
|
||||||
const bool isDevice = !item->udi().isEmpty();
|
const bool isDevice = !item->udi().isEmpty();
|
||||||
const bool isTrash = (item->url().scheme() == QLatin1String("trash"));
|
const bool isTrash = (item->url().scheme() == QLatin1String("trash"));
|
||||||
if (isDevice) {
|
if (isDevice) {
|
||||||
|
|
|
@ -541,7 +541,6 @@ void PlacesItemModelTest::testSystemItems()
|
||||||
|
|
||||||
void PlacesItemModelTest::testEditBookmark()
|
void PlacesItemModelTest::testEditBookmark()
|
||||||
{
|
{
|
||||||
const QUrl tempUrl = QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::TempLocation));
|
|
||||||
QScopedPointer<PlacesItemModel> other(new PlacesItemModel());
|
QScopedPointer<PlacesItemModel> other(new PlacesItemModel());
|
||||||
|
|
||||||
createPlaceItem(QStringLiteral("Temporary Dir"), QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::TempLocation)), QString());
|
createPlaceItem(QStringLiteral("Temporary Dir"), QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::TempLocation)), QString());
|
||||||
|
|
Loading…
Reference in a new issue