From 03c38e02e97cc7c1bec9472d081db6cf085d560e Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 29 Apr 2021 08:10:37 +0300 Subject: [PATCH] platforms/drm: Remove DrmBackend::findOutput() It's unused. --- src/plugins/platforms/drm/drm_backend.cpp | 11 ----------- src/plugins/platforms/drm/drm_backend.h | 1 - 2 files changed, 12 deletions(-) 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);