summaryrefslogtreecommitdiffstats
path: root/src/display/curve.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-07 19:31:39 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-07 19:31:39 +0000
commit5119a27b93ec6758293d201f1aca403b7dbdd7fe (patch)
tree92a4917c97545d6abb0ae979814ce9419a848e6d /src/display/curve.h
parenttry to use consistent document for creating guides (diff)
downloadinkscape-5119a27b93ec6758293d201f1aca403b7dbdd7fe.tar.gz
inkscape-5119a27b93ec6758293d201f1aca403b7dbdd7fe.zip
cleanup unused methods in spcurve
(bzr r6213)
Diffstat (limited to 'src/display/curve.h')
-rw-r--r--src/display/curve.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/display/curve.h b/src/display/curve.h
index 7dee3dbf1..39720e401 100644
--- a/src/display/curve.h
+++ b/src/display/curve.h
@@ -53,9 +53,8 @@ public:
SPCurve * copy() const;
GSList * split() const;
+ void transform(NR::Matrix const &m);
void transform(Geom::Matrix const &m);
- void transform(NR::Matrix const &);
- void transform(NR::translate const &);
void stretch_endpoints(NR::Point const &, NR::Point const &);
void move_endpoints(NR::Point const &, NR::Point const &);
void last_point_additive_move(Geom::Point const & p);
@@ -145,17 +144,12 @@ private:
//friends:
friend double sp_curve_distance_including_space(SPCurve const *const curve, double seg2len[]);
friend double sp_curve_nonzero_distance_including_space(SPCurve const *const curve, double seg2len[]);
- template<class M> friend void tmpl_curve_transform(SPCurve *const curve, M const &m);
- // this function is the only one who needs read access to _movePos and _posSet
- friend void sp_polygon_set(SPObject *object, unsigned int key, const gchar *value);
-
- static void debug_check( char const * text, SPCurve const * curve);
- static void debug_check( char const * text, bool a);
+ template<class M> friend void tmpl_curve_transform(SPCurve * curve, M const &m);
};
#define SP_CURVE_LENGTH(c) (((SPCurve const *)(c))->get_length())
#define SP_CURVE_BPATH(c) (((SPCurve const *)(c))->get_bpath())
-#define SP_CURVE_SEGMENT(c,i) (((SPCurve const *)(c))->get_bpath() + (i))
+
#endif /* !SEEN_DISPLAY_CURVE_H */