From 4e8144732edf2224b955bd6e8613ddfe4fbe5b43 Mon Sep 17 00:00:00 2001 From: Thomas Frauendorfer Date: Fri, 29 Feb 2008 18:30:57 +0100 Subject: [PATCH] Remove some commented out, unused code I forgot to remove in the last commit --- src/basewindow.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/basewindow.cpp b/src/basewindow.cpp index 14abb18..2c0cdeb 100644 --- a/src/basewindow.cpp +++ b/src/basewindow.cpp @@ -229,29 +229,3 @@ BaseWindow::snapWindow(QPoint pos, AttachedWindowMap attached) return pos; } - -/* - if (!widgets.isEmpty ()) { - QPoint ret = testSnapWindow (this, pos, widgets); - // test is attached Windows can snap to a unattached window - if (((ret.x () == -1) || (ret.y () == -1)) && (!attached.isEmpty ())) { - QPoint tmp; - foreach (w, attached.keys ()) { - tmp = testSnapWindow (w, pos + attached[w], widgets); - if ((ret.x () == -1) && (tmp.x () > -1)) { - ret.setX (tmp.x () - attached[w].x ()); - } - if ((ret.y () == -1) && (tmp.y () > -1)) { - ret.setY (tmp.y () - attached[w]. y()); - } - ret = mergePoint (ret, tmp); - if ((ret.x () > -1) && (ret.y () > -1)) { - break; - } - } - } - // Subwindows didn't provide snap target for x and y axis: - ret = mergePoint (ret, pos); - return ret; - } -*/