From 0a7661c9df49cda867b93ce99de6d336b54e2c88 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 21 Jul 2022 14:12:53 +0300 Subject: [PATCH] backends/drm: Remove DrmGpu::{outputEnabled,outputDisabled} They are unused. --- src/backends/drm/drm_backend.cpp | 2 -- src/backends/drm/drm_gpu.cpp | 1 - src/backends/drm/drm_gpu.h | 2 -- 3 files changed, 5 deletions(-) diff --git a/src/backends/drm/drm_backend.cpp b/src/backends/drm/drm_backend.cpp index 5680b57c6b..03fc72cc02 100644 --- a/src/backends/drm/drm_backend.cpp +++ b/src/backends/drm/drm_backend.cpp @@ -525,7 +525,6 @@ void DrmBackend::enableOutput(DrmAbstractOutput *output, bool enable) } if (enable) { m_enabledOutputs << output; - Q_EMIT output->gpu()->outputEnabled(output); Q_EMIT outputEnabled(output); checkOutputsAreOn(); if (m_placeHolderOutput) { @@ -544,7 +543,6 @@ void DrmBackend::enableOutput(DrmAbstractOutput *output, bool enable) input()->prependInputEventFilter(m_placeholderFilter.get()); } m_enabledOutputs.removeOne(output); - Q_EMIT output->gpu()->outputDisabled(output); Q_EMIT outputDisabled(output); } } diff --git a/src/backends/drm/drm_gpu.cpp b/src/backends/drm/drm_gpu.cpp index faf5898480..1d946efcd1 100644 --- a/src/backends/drm/drm_gpu.cpp +++ b/src/backends/drm/drm_gpu.cpp @@ -598,7 +598,6 @@ DrmVirtualOutput *DrmGpu::createVirtualOutput(const QString &name, const QSize & auto output = new DrmVirtualOutput(name, this, size, type); output->setScale(scale); m_outputs << output; - Q_EMIT outputEnabled(output); Q_EMIT outputAdded(output); return output; } diff --git a/src/backends/drm/drm_gpu.h b/src/backends/drm/drm_gpu.h index 3e100f9262..53ea0229d1 100644 --- a/src/backends/drm/drm_gpu.h +++ b/src/backends/drm/drm_gpu.h @@ -87,8 +87,6 @@ public: Q_SIGNALS: void outputAdded(DrmAbstractOutput *output); void outputRemoved(DrmAbstractOutput *output); - void outputEnabled(DrmAbstractOutput *output); - void outputDisabled(DrmAbstractOutput *output); private: void dispatchEvents();