From acb5c04faebfbcd394de7879335aaabe58c29759 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 28 Aug 2021 19:08:23 +0300 Subject: [PATCH] Drop Workspace::clientArea(clientAreaOption opt, const Toplevel *window, int screen) It's unused. --- src/workspace.cpp | 7 +------ src/workspace.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/workspace.cpp b/src/workspace.cpp index 73a2119ef3..c816c23607 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -2358,14 +2358,9 @@ QRect Workspace::clientArea(clientAreaOption opt, const Toplevel *window, const return clientArea(opt, window, output->geometry().center()); } -QRect Workspace::clientArea(clientAreaOption opt, const Toplevel *window, int screen) const -{ - return clientArea(opt, screen, window->desktop()); -} - QRect Workspace::clientArea(clientAreaOption opt, const Toplevel *window, const QPoint &pos) const { - return clientArea(opt, window, screens()->number(pos)); + return clientArea(opt, screens()->number(pos), window->desktop()); } static QRegion strutsToRegion(StrutAreas areas, const StrutRects &strut) diff --git a/src/workspace.h b/src/workspace.h index 535b16a36d..f9aa4b4f65 100644 --- a/src/workspace.h +++ b/src/workspace.h @@ -143,7 +143,6 @@ public: QRect clientArea(clientAreaOption, const QPoint& p, int desktop) const; QRect clientArea(clientAreaOption, const Toplevel *window) const; QRect clientArea(clientAreaOption, const Toplevel *window, const AbstractOutput *output) const; - QRect clientArea(clientAreaOption, const Toplevel *window, int screen) const; QRect clientArea(clientAreaOption, const Toplevel *window, const QPoint &pos) const; QRect clientArea(clientAreaOption, int screen, int desktop) const;