From 54ea0b53861e527030823a451265564f8c9b5584 Mon Sep 17 00:00:00 2001 From: cth103 Date: Wed, 3 May 2006 11:17:16 +0000 Subject: [PATCH] Remove the unused namedview_dim_snap_list() --- src/snap.cpp | 31 ------------------------------- src/snap.h | 6 ------ 2 files changed, 37 deletions(-) diff --git a/src/snap.cpp b/src/snap.cpp index 592c65fec..940d4c772 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -250,37 +250,6 @@ NR::Coord namedview_vector_snap(SPNamedView const *nv, Inkscape::Snapper::PointT * They return the updated transformation parameter. */ -/** - * Snap list of points in one dimension. - * \return Coordinate difference. - */ -std::pair namedview_dim_snap_list(SPNamedView const *nv, Inkscape::Snapper::PointType t, - const std::vector &p, - NR::Coord const dx, NR::Dim2 const dim, - std::list const &it - ) -{ - NR::Coord dist = NR_HUGE; - NR::Coord xdist = dx; - - SnapManager const &m = nv->snap_manager; - - if (m.willSnapSomething()) { - for (std::vector::const_iterator i = p.begin(); i != p.end(); i++) { - NR::Point q = *i; - NR::Coord const pre = q[dim]; - q[dim] += dx; - NR::Coord const d = namedview_dim_snap(nv, t, q, dim, it); - if (d < dist) { - xdist = q[dim] - pre; - dist = d; - } - } - } - - return std::make_pair(xdist, dist < NR_HUGE); -} - /** * Snap list of points in two dimensions. */ diff --git a/src/snap.h b/src/snap.h index 252c585c9..49c498789 100644 --- a/src/snap.h +++ b/src/snap.h @@ -87,12 +87,6 @@ std::pair namedview_vector_snap_list(SPNamedView const *nv, std::list const &it ); -std::pair namedview_dim_snap_list(SPNamedView const *nv, - Inkscape::Snapper::PointType t, const std::vector &p, - double const dx, NR::Dim2 const dim, - std::list const &it - ); - std::pair namedview_dim_snap_list_scale(SPNamedView const *nv, Inkscape::Snapper::PointType t, const std::vector &p, NR::Point const &norm, double const sx, -- 2.39.5