From 9781f43a4805b72ce2149c6576545719c5ff79cc Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 14 Dec 2021 16:36:34 +0100 Subject: [PATCH] backends/drm: remove unneeded methods in DrmBackend --- src/backends/drm/drm_backend.h | 6 ------ src/backends/drm/scene_qpainter_drm_backend.cpp | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/backends/drm/drm_backend.h b/src/backends/drm/drm_backend.h index d10edd74a3..5cc084ae3c 100644 --- a/src/backends/drm/drm_backend.h +++ b/src/backends/drm/drm_backend.h @@ -48,12 +48,6 @@ public: Outputs outputs() const override; Outputs enabledOutputs() const override; - QVector drmOutputs() const { - return m_outputs; - } - QVector drmEnabledOutputs() const { - return m_enabledOutputs; - } void enableOutput(DrmAbstractOutput *output, bool enable); diff --git a/src/backends/drm/scene_qpainter_drm_backend.cpp b/src/backends/drm/scene_qpainter_drm_backend.cpp index 945e4defb9..2f49f845b2 100644 --- a/src/backends/drm/scene_qpainter_drm_backend.cpp +++ b/src/backends/drm/scene_qpainter_drm_backend.cpp @@ -23,9 +23,9 @@ DrmQPainterBackend::DrmQPainterBackend(DrmBackend *backend, DrmGpu *gpu) , m_backend(backend) , m_gpu(gpu) { - const auto outputs = m_backend->drmOutputs(); + const auto outputs = m_backend->enabledOutputs(); for (auto output: outputs) { - initOutput(output); + initOutput(static_cast(output)); } connect(m_gpu, &DrmGpu::outputEnabled, this, &DrmQPainterBackend::initOutput); connect(m_gpu, &DrmGpu::outputDisabled, this,