summaryrefslogtreecommitdiffstats
path: root/src/display/curve.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-29 13:50:12 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-29 13:50:12 +0000
commit2143789dc5c3dd02f9ff2fd0717081e6e63a4434 (patch)
treea0c20970078976b44e7dfeef2f627231e04abd63 /src/display/curve.cpp
parentpen tool: use SPCurve::last_segment in favor of last_bpath (diff)
downloadinkscape-2143789dc5c3dd02f9ff2fd0717081e6e63a4434.tar.gz
inkscape-2143789dc5c3dd02f9ff2fd0717081e6e63a4434.zip
remove unused function first_bpath
(bzr r6091)
Diffstat (limited to 'src/display/curve.cpp')
-rw-r--r--src/display/curve.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp
index 065365973..e80b668d6 100644
--- a/src/display/curve.cpp
+++ b/src/display/curve.cpp
@@ -927,21 +927,6 @@ SPCurve::last_path() const
}
/**
- * Return first subpath or NULL.
- */
-NArtBpath const *
-SPCurve::first_bpath() const
-{
- g_return_val_if_fail(this != NULL, NULL);
-
- if (_end == 0) {
- return NULL;
- }
-
- return _bpath;
-}
-
-/**
* Return first pathsegment in PathVector or NULL.
* equal in functionality to SPCurve::first_bpath()
*/
@@ -979,7 +964,7 @@ SPCurve::first_path() const
NR::Point
SPCurve::first_point() const
{
- NArtBpath const * bpath = first_bpath();
+ NArtBpath const * bpath = get_bpath();
g_return_val_if_fail(bpath != NULL, NR::Point(0, 0));
if (is_empty())
return NR::Point(0, 0);
@@ -1224,7 +1209,7 @@ SPCurve::append_continuous(SPCurve const *c1, gdouble tolerance)
NArtBpath const *be = last_bpath();
if (be) {
- NArtBpath const *bs = c1->first_bpath();
+ NArtBpath const *bs = c1->get_bpath();
if ( bs
&& ( fabs( bs->x3 - be->x3 ) <= tolerance )
&& ( fabs( bs->y3 - be->y3 ) <= tolerance ) )