summaryrefslogtreecommitdiffstats
path: root/src/snapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/snapper.cpp')
-rw-r--r--src/snapper.cpp109
1 files changed, 0 insertions, 109 deletions
diff --git a/src/snapper.cpp b/src/snapper.cpp
index 803506e76..4dfb9042e 100644
--- a/src/snapper.cpp
+++ b/src/snapper.cpp
@@ -85,115 +85,6 @@ void Inkscape::Snapper::setEnabled(bool s)
_snap_enabled = s;
}
-
-/**
- * Try to snap a point to whatever this snapper is interested in. Any
- * snap that occurs will be to the nearest "interesting" thing (e.g. a
- * grid or guide line)
- *
- * \param t Point type.
- * \param p Point to snap (desktop coordinates).
- * \param it Item that should not be snapped to.
- * \return Snapped point.
- */
-
-void Inkscape::Snapper::freeSnap(SnappedConstraints &sc,
- PointType const &t,
- NR::Point const &p,
- bool const &first_point,
- std::vector<NR::Point> &points_to_snap,
- SPItem const *it) const
-{
- std::vector<SPItem const *> lit;
- if (it) {
- lit.push_back(it);
- }
-
- freeSnap(sc, t, p, first_point, points_to_snap, lit, NULL);
-}
-
-/**
- * Try to snap a point to whatever this snapper is interested in. Any
- * snap that occurs will be to the nearest "interesting" thing (e.g. a
- * grid or guide line)
- *
- * \param t Point type.
- * \param p Point to snap (desktop coordinates).
- * \param it Items that should not be snapped to.
- * \return Snapped point.
- */
-
-void Inkscape::Snapper::freeSnap(SnappedConstraints &sc,
- PointType const &t,
- NR::Point const &p,
- bool const &first_point,
- std::vector<NR::Point> &points_to_snap,
- std::vector<SPItem const *> const &it,
- std::vector<NR::Point> *unselected_nodes) const
-{
- if (_snap_enabled == false || getSnapFrom(t) == false) {
- return;
- }
-
- _doFreeSnap(sc, t, p, first_point, points_to_snap, it, unselected_nodes);
-}
-
-
-
-
-/**
- * Try to snap a point to whatever this snapper is interested in, where
- * the snap point is constrained to lie along a specified vector from the
- * original point.
- *
- * \param p Point to snap (desktop coordinates).
- * \param c Vector to constrain the snap to.
- * \param it Items that should not be snapped to.
- * \return Snapped point.
- */
-
-void Inkscape::Snapper::constrainedSnap(SnappedConstraints &sc,
- PointType const &t,
- NR::Point const &p,
- bool const &first_point,
- std::vector<NR::Point> &points_to_snap,
- ConstraintLine const &c,
- SPItem const *it) const
-{
- std::vector<SPItem const *> lit;
- if (it) {
- lit.push_back(it);
- }
- constrainedSnap(sc, t, p, first_point, points_to_snap, c, lit);
-}
-
-
-/**
- * Try to snap a point to whatever this snapper is interested in, where
- * the snap point is constrained to lie along a specified vector from the
- * original point.
- *
- * \param p Point to snap (desktop coordinates).
- * \param c Vector to constrain the snap to.
- * \param it Items that should not be snapped to.
- * \return Snapped point.
- */
-
-void Inkscape::Snapper::constrainedSnap(SnappedConstraints &sc,
- PointType const &t,
- NR::Point const &p,
- bool const &first_point,
- std::vector<NR::Point> &points_to_snap,
- ConstraintLine const &c,
- std::vector<SPItem const *> const &it) const
-{
- if (_snap_enabled == false || getSnapFrom(t) == false) {
- return;
- }
-
- _doConstrainedSnap(sc, t, p, first_point, points_to_snap, c, it);
-}
-
/*
Local Variables:
mode:c++