From 7b3ee21cd3e40089b5ce2235ccc37a1b665115a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 14 Mar 2012 08:06:16 +0100 Subject: [PATCH] [Janitorial] Remove unused function resetMaximize is done in changeMaximize since ages --- client.h | 1 - geometry.cpp | 18 ------------------ 2 files changed, 19 deletions(-) diff --git a/client.h b/client.h index 2677f30dc9..c35643f250 100644 --- a/client.h +++ b/client.h @@ -741,7 +741,6 @@ private: void positionGeometryTip(); void grabButton(int mod); void ungrabButton(int mod); - void resetMaximize(); void resizeDecoration(const QSize& s); void pingWindow(); diff --git a/geometry.cpp b/geometry.cpp index 225774a4ad..5c176b70ba 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -2276,24 +2276,6 @@ void Client::changeMaximize(bool vertical, bool horizontal, bool adjust) updateWindowRules(Rules::MaximizeVert|Rules::MaximizeHoriz|Rules::Position|Rules::Size); } -void Client::resetMaximize() -{ - if (max_mode == MaximizeRestore) - return; - max_mode = MaximizeRestore; - Notify::raise(Notify::UnMaximize); - info->setState(0, NET::Max); - updateAllowedActions(); - if (decoration != NULL) - decoration->borders(border_left, border_right, border_top, border_bottom); - if (isShade()) - setGeometry(QRect(pos(), sizeForClientSize(clientSize())), ForceGeometrySet); - else - setGeometry(geometry(), ForceGeometrySet); - if (decoration != NULL) - decoration->maximizeChange(); -} - bool Client::isFullScreenable(bool fullscreen_hack) const { if (!rules()->checkFullScreen(true))