diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-08-31 14:52:06 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-08-31 14:52:06 +0000 |
| commit | 7c7c483098d288b7b17771d8a1cc489464d0617b (patch) | |
| tree | 7e46396631dd0c62e194ceeb340455637eabd9fa /src/splivarot.cpp | |
| parent | remove unused variables (diff) | |
| download | inkscape-7c7c483098d288b7b17771d8a1cc489464d0617b.tar.gz inkscape-7c7c483098d288b7b17771d8a1cc489464d0617b.zip | |
remove unused include files and methods
(bzr r6738)
Diffstat (limited to 'src/splivarot.cpp')
| -rw-r--r-- | src/splivarot.cpp | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp index 0996ca538..b65e6c239 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -43,16 +43,10 @@ #include <glibmm/i18n.h> #include "prefs-utils.h" -#include "libnr/n-art-bpath.h" -#include "libnr/nr-path.h" #include "xml/repr.h" #include "xml/repr-sorting.h" #include <2geom/pathvector.h> -#include <libnr/nr-matrix-fns.h> -#include <libnr/nr-matrix-ops.h> -#include <libnr/nr-matrix-translate-ops.h> #include <libnr/nr-scale-matrix-ops.h> -#include <libnr/n-art-bpath-2geom.h> #include "helper/geom.h" #include "livarot/Path.h" @@ -1853,64 +1847,6 @@ SPCurve* curve_for_item(SPItem *item) return curve; // do not forget to unref the curve at some point! } -Path *bpath_to_Path(NArtBpath const *bpath) -{ - Path *dest = new Path; - dest->SetBackData(false); - { - int i; - bool closed = false; - float lastX = 0.0; - float lastY = 0.0; - - for (i = 0; bpath[i].code != NR_END; i++) { - switch (bpath[i].code) { - case NR_LINETO: - lastX = bpath[i].x3; - lastY = bpath[i].y3; - { - NR::Point tmp(lastX, lastY); - dest->LineTo(tmp); - } - break; - - case NR_CURVETO: - { - NR::Point tmp, tms, tme; - tmp[0]=bpath[i].x3; - tmp[1]=bpath[i].y3; - tms[0]=3 * (bpath[i].x1 - lastX); - tms[1]=3 * (bpath[i].y1 - lastY); - tme[0]=3 * (bpath[i].x3 - bpath[i].x2); - tme[1]=3 * (bpath[i].y3 - bpath[i].y2); - dest->CubicTo(tmp,tms,tme); - } - lastX = bpath[i].x3; - lastY = bpath[i].y3; - break; - - case NR_MOVETO_OPEN: - case NR_MOVETO: - if (closed) - dest->Close(); - closed = (bpath[i].code == NR_MOVETO); - lastX = bpath[i].x3; - lastY = bpath[i].y3; - { - NR::Point tmp(lastX, lastY); - dest->MoveTo(tmp); - } - break; - default: - break; - } - } - if (closed) - dest->Close(); - } - return dest; -} - boost::optional<Path::cut_position> get_nearest_position_on_Path(Path *path, NR::Point p, unsigned seg) { //get nearest position on path |
