Remove unused variable

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D23829
This commit is contained in:
Frederik Gladhorn 2019-09-10 14:20:15 +02:00
parent 9ea29e3891
commit 26b4b6580c

View file

@ -136,7 +136,6 @@ void Platform::requestOutputsChange(KWayland::Server::OutputConfigurationInterfa
using Enablement = KWayland::Server::OutputDeviceInterface::Enablement;
const auto changes = config->changes();
bool countChanged = false;
//process all non-disabling changes
for (auto it = changes.begin(); it != changes.end(); it++) {
@ -151,7 +150,6 @@ void Platform::requestOutputsChange(KWayland::Server::OutputConfigurationInterfa
if (changeset->enabledChanged() &&
changeset->enabled() == Enablement::Enabled) {
output->setEnabled(true);
countChanged = true;
}
output->applyChanges(changeset);
}
@ -174,7 +172,6 @@ void Platform::requestOutputsChange(KWayland::Server::OutputConfigurationInterfa
continue;
}
output->setEnabled(false);
countChanged = true;
}
}
emit screens()->changed();