From 80995fc20545de1cbf1d47cc756b2c6644efc50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 15 Apr 2016 13:08:03 +0200 Subject: [PATCH] Remove the AreaBasedEdge class No difference to Edge. --- screenedge.cpp | 13 +------------ screenedge.h | 8 -------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/screenedge.cpp b/screenedge.cpp index 54c5b90b01..e7b37c0748 100644 --- a/screenedge.cpp +++ b/screenedge.cpp @@ -584,17 +584,6 @@ void WindowBasedEdge::doUpdateBlocking() m_approachWindow.map(); } } -/********************************************************** - * AreaBasedEdge - *********************************************************/ -AreaBasedEdge::AreaBasedEdge(ScreenEdges* parent) - : Edge(parent) -{ -} - -AreaBasedEdge::~AreaBasedEdge() -{ -} /********************************************************** * ScreenEdges @@ -952,7 +941,7 @@ Edge *ScreenEdges::createEdge(ElectricBorder border, int x, int y, int width, in if (kwinApp()->operationMode() == Application::OperationModeX11) { edge = new WindowBasedEdge(this); } else { - edge = new AreaBasedEdge(this); + edge = new Edge(this); } edge->setBorder(border); edge->setGeometry(QRect(x, y, width, height)); diff --git a/screenedge.h b/screenedge.h index 063ee9bdaa..4d837d168b 100644 --- a/screenedge.h +++ b/screenedge.h @@ -148,14 +148,6 @@ private: Xcb::Window m_approachWindow; }; -class AreaBasedEdge : public Edge -{ - Q_OBJECT -public: - explicit AreaBasedEdge(ScreenEdges *parent); - virtual ~AreaBasedEdge(); -}; - /** * @short Class for controlling screen edges. *