Code

now that selection description includes style (filtered, clipped), we need to update...
[inkscape.git] / src / snapper.cpp
index 79f30fa3ce4eb7bea27517b97f6eab8e2b5c66e6..7e08c22ef7a71d8d2c77b154252da9068548c039 100644 (file)
  *  \param nv Named view.
  *  \param d Snap tolerance.
  */
-Inkscape::Snapper::Snapper(SnapManager const *sm, Geom::Coord const t) : 
-       _snapmanager(sm), 
-       _snap_enabled(true),
-       _snapper_tolerance(std::max(t, 1.0))
+Inkscape::Snapper::Snapper(SnapManager *sm, Geom::Coord const /*t*/) :
+       _snapmanager(sm),
+       _snap_enabled(true)
 {
     g_assert(_snapmanager != NULL);
 }
 
-/**
- *  Set snap tolerance.
- *  \param d New snap tolerance (desktop coordinates)
- */
-void Inkscape::Snapper::setSnapperTolerance(Geom::Coord const d)
-{
-    _snapper_tolerance = std::max(d, 1.0);
-}
-
-/**
- *  \return Snap tolerance (desktop coordinates); depends on current zoom so that it's always the same in screen pixels
- */
-Geom::Coord Inkscape::Snapper::getSnapperTolerance() const
-{
-    return _snapper_tolerance / SP_ACTIVE_DESKTOP->current_zoom();
-}
-
-bool Inkscape::Snapper::getSnapperAlwaysSnap() const
-{
-    return _snapper_tolerance == 10000; //TODO: Replace this threshold of 10000 by a constant; see also tolerance-slider.cpp
-}
-
 /**
  *  \param s true to enable this snapper, otherwise false.
  */