Drop ShellClient::shellSurface method

Summary:
The only place where this method is used is testMaximize. Though that
usage is not justified. We're checking what KWayland already checks.

Test Plan: Compiles, all tests still pass.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D18635
This commit is contained in:
Vlad Zagorodniy 2019-02-01 01:04:15 +02:00
parent 5a98591fff
commit 97cf32f916
2 changed files with 0 additions and 5 deletions

View file

@ -174,7 +174,6 @@ void TestMaximized::testInitiallyMaximized()
QCOMPARE(client->geometry(), QRect(0, 0, 100, 50)); QCOMPARE(client->geometry(), QRect(0, 0, 100, 50));
QEXPECT_FAIL("", "Should go out of maximzied", Continue); QEXPECT_FAIL("", "Should go out of maximzied", Continue);
QCOMPARE(client->maximizeMode(), MaximizeMode::MaximizeRestore); QCOMPARE(client->maximizeMode(), MaximizeMode::MaximizeRestore);
QVERIFY(client->shellSurface()->isMaximized());
} }
void TestMaximized::testBorderlessMaximizedWindow() void TestMaximized::testBorderlessMaximizedWindow()

View file

@ -69,10 +69,6 @@ public:
void setOpacity(double opacity) override; void setOpacity(double opacity) override;
QByteArray windowRole() const override; QByteArray windowRole() const override;
KWayland::Server::ShellSurfaceInterface *shellSurface() const {
return m_shellSurface;
}
void blockActivityUpdates(bool b = true) override; void blockActivityUpdates(bool b = true) override;
QString captionNormal() const override { QString captionNormal() const override {
return m_caption; return m_caption;