]> Shamusworld >> Repos - architektonas/commitdiff
Throw away unnecessary code in DrawingView. :-D
authorShamus Hammons <jlhamm@acm.org>
Fri, 29 May 2020 01:28:50 +0000 (20:28 -0500)
committerShamus Hammons <jlhamm@acm.org>
Fri, 29 May 2020 01:28:50 +0000 (20:28 -0500)
src/drawingview.cpp
src/drawingview.h

index de356d29ddb326a20b54a3ec6f52de56183ae42c..d35bd14f5a308dbc1f947950043d0c462e01a5a9 100644 (file)
@@ -726,18 +726,6 @@ void DrawingView::AddHoveredToSelection(void)
 }
 
 
-void DrawingView::GetSelection(VPVector & v)
-{
-       v.clear();
-
-       for(VPVectorIter i=document.objects.begin(); i!=document.objects.end(); i++)
-       {
-               if (((Object *)(*i))->selected)
-                       v.push_back(*i);
-       }
-}
-
-
 VPVector DrawingView::GetSelection(void)
 {
        VPVector v;
index 7e5a9d1db52b212509ef5041ba283e7a4c8f9ded..9d543c44d6f930e3de1e16f8705a813c0f84e1f0 100644 (file)
@@ -24,7 +24,6 @@ class DrawingView: public QWidget
                Point SnapPointToAngle(Point);
                void RenderObjects(Painter *, VPVector &, int, bool ignoreLayer = false);
                void AddHoveredToSelection(void);
-               void GetSelection(VPVector &);
                VPVector GetSelection(void);
                VPVector GetHovered(void);
                void ToolHandler(int, Point);