diff --git a/src/plugins/platforms/drm/drm_backend.cpp b/src/plugins/platforms/drm/drm_backend.cpp index 99836906d9..321171365e 100644 --- a/src/plugins/platforms/drm/drm_backend.cpp +++ b/src/plugins/platforms/drm/drm_backend.cpp @@ -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() { diff --git a/src/plugins/platforms/drm/drm_backend.h b/src/plugins/platforms/drm/drm_backend.h index 1f4fdd7baa..6452cdda55 100644 --- a/src/plugins/platforms/drm/drm_backend.h +++ b/src/plugins/platforms/drm/drm_backend.h @@ -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 device);