From 7054f6b2d6396c352550c30df247fce10dc7126c Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 1 Apr 2021 17:59:24 +0300 Subject: [PATCH] platforms/drm: Drop stream operator for DrmOutput There is already one that works for all AbstractOutput classes and properly restores the state of QDebug. --- src/plugins/platforms/drm/drm_output.cpp | 7 ------- src/plugins/platforms/drm/drm_output.h | 3 --- 2 files changed, 10 deletions(-) diff --git a/src/plugins/platforms/drm/drm_output.cpp b/src/plugins/platforms/drm/drm_output.cpp index 612581d35e..8a17a7c325 100644 --- a/src/plugins/platforms/drm/drm_output.cpp +++ b/src/plugins/platforms/drm/drm_output.cpp @@ -885,10 +885,3 @@ bool DrmOutput::setGammaRamp(const GammaRamp &gamma) } } - -QDebug& operator<<(QDebug& s, const KWin::DrmOutput *output) -{ - if (!output) - return s.nospace() << "DrmOutput()"; - return s.nospace() << "DrmOutput(" << output->name() << ", crtc:" << output->crtc() << ", connector:" << output->connector() << ", geometry:" << output->geometry() << ')'; -} diff --git a/src/plugins/platforms/drm/drm_output.h b/src/plugins/platforms/drm/drm_output.h index 30059f82fb..d061dc30ff 100644 --- a/src/plugins/platforms/drm/drm_output.h +++ b/src/plugins/platforms/drm/drm_output.h @@ -177,7 +177,4 @@ private: Q_DECLARE_METATYPE(KWin::DrmOutput*) -QDebug& operator<<(QDebug& stream, const KWin::DrmOutput *); - #endif -