From b85b43a64e3d3d7e623b4bcd99b08ef8f6fc7a43 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Wed, 9 May 2018 21:38:45 +0200 Subject: Reset old code to reaply fixed --- src/ui/tool/control-point-selection.h | 5 ++--- src/ui/tool/selectable-control-point.cpp | 9 --------- src/ui/tool/selectable-control-point.h | 2 -- 3 files changed, 2 insertions(+), 14 deletions(-) (limited to 'src/ui') diff --git a/src/ui/tool/control-point-selection.h b/src/ui/tool/control-point-selection.h index d0cfce8d2..ec845b1b3 100644 --- a/src/ui/tool/control-point-selection.h +++ b/src/ui/tool/control-point-selection.h @@ -117,8 +117,6 @@ public: void getOriginalPoints(std::vector &pts); void getUnselectedPoints(std::vector &pts); void setOriginalPoints(); - //the purpose of this list is to keep track of first and last selected - std::list _points_list; private: // The functions below are invoked from SelectableControlPoint. @@ -142,7 +140,8 @@ private: double _rotationRadius(Geom::Point const &); set_type _points; - + //the purpose of this list is to keep track of first and last selected + std::list _points_list; set_type _all_points; INK_UNORDERED_MAP _original_positions; INK_UNORDERED_MAP _last_trans; diff --git a/src/ui/tool/selectable-control-point.cpp b/src/ui/tool/selectable-control-point.cpp index 83ed7d38b..f3f9c0e1e 100644 --- a/src/ui/tool/selectable-control-point.cpp +++ b/src/ui/tool/selectable-control-point.cpp @@ -87,15 +87,6 @@ bool SelectableControlPoint::clicked(GdkEventButton *event) return true; } -void SelectableControlPoint::select(bool toselect) -{ - if (toselect) { - _selection.insert(this); - } else { - _selection.erase(this); - } -} - void SelectableControlPoint::_takeSelection() { _selection.clear(); diff --git a/src/ui/tool/selectable-control-point.h b/src/ui/tool/selectable-control-point.h index c16f639b1..362d4addc 100644 --- a/src/ui/tool/selectable-control-point.h +++ b/src/ui/tool/selectable-control-point.h @@ -28,10 +28,8 @@ public: virtual Geom::Rect bounds() const { return Geom::Rect(position(), position()); } - virtual void select(bool toselect); friend class NodeList; - protected: SelectableControlPoint(SPDesktop *d, Geom::Point const &initial_pos, SPAnchorType anchor, -- cgit v1.2.3