Commit 03c38e02 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

platforms/drm: Remove DrmBackend::findOutput()

It's unused.
parent 54a034b7
......@@ -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()
{
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment