platforms/drm: Remove DrmBackend::findOutput()

It's unused.
This commit is contained in:
Vlad Zahorodnii 2021-04-29 08:10:37 +03:00
parent 54a034b7cf
commit 03c38e02e9
2 changed files with 0 additions and 12 deletions

View file

@ -470,17 +470,6 @@ void DrmBackend::enableOutput(DrmOutput *output, bool enable)
emit screensQueried();
}
DrmOutput *DrmBackend::findOutput(quint32 connector)
{
auto it = std::find_if(m_outputs.constBegin(), m_outputs.constEnd(), [connector] (DrmOutput *o) {
return o->m_conn->id() == connector;
});
if (it != m_outputs.constEnd()) {
return *it;
}
return nullptr;
}
void DrmBackend::initCursor()
{

View file

@ -92,7 +92,6 @@ private:
void readOutputsConfiguration();
void writeOutputsConfiguration();
QString generateOutputConfigurationUuid() const;
DrmOutput *findOutput(quint32 connector);
void updateOutputsEnabled();
void handleUdevEvent();
DrmGpu *addGpu(std::unique_ptr<UdevDevice> device);