workspace: slightly simplify tilemanager interactions
This commit is contained in:
parent
7939352fb7
commit
09a41d3851
1 changed files with 1 additions and 6 deletions
|
@ -1464,11 +1464,7 @@ void Workspace::updateOutputs()
|
|||
|
||||
const auto removed = oldOutputsSet - outputsSet;
|
||||
for (Output *output : removed) {
|
||||
auto it = m_tileManagers.find(output);
|
||||
if (it != m_tileManagers.end()) {
|
||||
m_tileManagers.erase(it);
|
||||
}
|
||||
|
||||
m_tileManagers.erase(output);
|
||||
Q_EMIT outputRemoved(output);
|
||||
output->unref();
|
||||
}
|
||||
|
@ -3146,7 +3142,6 @@ ScreenEdges *Workspace::screenEdges() const
|
|||
|
||||
TileManager *Workspace::tileManager(Output *output)
|
||||
{
|
||||
Q_ASSERT(m_tileManagers.contains(output));
|
||||
return m_tileManagers.at(output).get();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue