Drop check whether WAYLAND_DISPLAY env is set

It was used to check whether we should create the Wayland interaction,
but now that is in kwin_wayland and kwin_x11 doesn't even try to create
the WaylandBackend.
This commit is contained in:
Martin Gräßlin 2014-10-17 09:28:15 +02:00
parent 1829345a2f
commit c2185c9530

View file

@ -427,10 +427,6 @@ WaylandBackend *WaylandBackend::s_self = 0;
WaylandBackend *WaylandBackend::create(QObject *parent)
{
Q_ASSERT(!s_self);
const QByteArray display = qgetenv("WAYLAND_DISPLAY");
if (display.isEmpty()) {
return NULL;
}
s_self = new WaylandBackend(parent);
return s_self;
}