diff --git a/plugins/platforms/drm/egl_gbm_backend.cpp b/plugins/platforms/drm/egl_gbm_backend.cpp
index 5a220cea59..077e5a9e45 100644
--- a/plugins/platforms/drm/egl_gbm_backend.cpp
+++ b/plugins/platforms/drm/egl_gbm_backend.cpp
@@ -28,8 +28,6 @@ along with this program. If not, see .
#include "screens.h"
// kwin libs
#include
-// Qt
-#include
#include
// system
#include
@@ -132,7 +130,6 @@ void EglGbmBackend::init()
initKWinGL();
initBufferAge();
initWayland();
- initRemotePresent();
}
bool EglGbmBackend::initRenderingContext()
@@ -159,15 +156,6 @@ bool EglGbmBackend::initRenderingContext()
return makeContextCurrent(m_outputs.first());
}
-void EglGbmBackend::initRemotePresent()
-{
- if (qEnvironmentVariableIsSet("KWIN_NO_REMOTE")) {
- return;
- }
- qCDebug(KWIN_DRM) << "Support for remote access enabled";
- m_remoteaccessManager.reset(new RemoteAccessManager);
-}
-
std::shared_ptr EglGbmBackend::createGbmSurface(const QSize &size) const
{
auto gbmSurface = std::make_shared(m_backend->gbmDevice(),
diff --git a/plugins/platforms/drm/egl_gbm_backend.h b/plugins/platforms/drm/egl_gbm_backend.h
index 3b2e967e4d..abdfe08c00 100644
--- a/plugins/platforms/drm/egl_gbm_backend.h
+++ b/plugins/platforms/drm/egl_gbm_backend.h
@@ -64,7 +64,7 @@ private:
bool initializeEgl();
bool initBufferConfigs();
bool initRenderingContext();
- void initRemotePresent();
+
struct Output {
DrmOutput *output = nullptr;
DrmSurfaceBuffer *buffer = nullptr;
@@ -105,7 +105,6 @@ private:
DrmBackend *m_backend;
QVector