diff --git a/clients/default/kdedefault.cpp b/clients/default/kdedefault.cpp index d854782c96..243d364569 100644 --- a/clients/default/kdedefault.cpp +++ b/clients/default/kdedefault.cpp @@ -773,8 +773,6 @@ bool KDEDefaultClient::decorationBehaviour(DecorationBehaviour behaviour) const int KDEDefaultClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCommonDecorationButton *btn) const { - bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows(); - switch (lm) { case LM_BorderLeft: case LM_BorderRight: @@ -1041,9 +1039,6 @@ void KDEDefaultClient::paintEvent( QPaintEvent* ) QRegion KDEDefaultClient::cornerShape(WindowCorner corner) { - int w = widget()->width(); - int h = widget()->height(); - switch (corner) { case WC_TopLeft: return QRect(0, 0, 1, 1); diff --git a/clients/laptop/laptopclient.cpp b/clients/laptop/laptopclient.cpp index f47a7bab76..641cc3768a 100644 --- a/clients/laptop/laptopclient.cpp +++ b/clients/laptop/laptopclient.cpp @@ -382,8 +382,6 @@ bool LaptopClient::decorationBehaviour(DecorationBehaviour behaviour) const int LaptopClient::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCommonDecorationButton *btn) const { - bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows(); - switch (lm) { case LM_TitleEdgeLeft: case LM_TitleEdgeRight: @@ -569,9 +567,6 @@ void LaptopClient::paintEvent( QPaintEvent* ) QRegion LaptopClient::cornerShape(WindowCorner corner) { - int w = widget()->width(); - int h = widget()->height(); - switch (corner) { case WC_TopLeft: return QRect(0, 0, 1, 1); diff --git a/clients/redmond/redmond.cpp b/clients/redmond/redmond.cpp index f5cabcc9cc..db6761983c 100644 --- a/clients/redmond/redmond.cpp +++ b/clients/redmond/redmond.cpp @@ -382,8 +382,6 @@ bool RedmondDeco::decorationBehaviour(DecorationBehaviour behaviour) const int RedmondDeco::layoutMetric(LayoutMetric lm, bool respectWindowState, const KCommonDecorationButton *btn) const { - bool maximized = maximizeMode()==MaximizeFull && !options()->moveResizeMaximizedWindows(); - switch (lm) { case LM_BorderLeft: case LM_BorderRight: