summaryrefslogtreecommitdiffstats
path: root/src/libnr
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnr')
-rw-r--r--src/libnr/nr-path.cpp20
-rw-r--r--src/libnr/nr-path.h2
2 files changed, 0 insertions, 22 deletions
diff --git a/src/libnr/nr-path.cpp b/src/libnr/nr-path.cpp
index 734f3426d..5f1437ef9 100644
--- a/src/libnr/nr-path.cpp
+++ b/src/libnr/nr-path.cpp
@@ -500,23 +500,3 @@ nr_path_matrix_bbox_union(const_NRBPath *bpath, NR::Matrix const &m,
}
}
}
-
-NArtBpath *nr_path_from_rect(NRRect const &r)
-{
- NArtBpath *path = g_new (NArtBpath, 6);
-
- path[0].code = NR_MOVETO;
- path[0].setC(3, NR::Point(r.x0, r.y0));
- path[1].code = NR_LINETO;
- path[1].setC(3, NR::Point(r.x1, r.y0));
- path[2].code = NR_LINETO;
- path[2].setC(3, NR::Point(r.x1, r.y1));
- path[3].code = NR_LINETO;
- path[3].setC(3, NR::Point(r.x0, r.y1));
- path[4].code = NR_LINETO;
- path[4].setC(3, NR::Point(r.x0, r.y0));
- path[5].code = NR_END;
-
- return path;
-}
-
diff --git a/src/libnr/nr-path.h b/src/libnr/nr-path.h
index 5e8b0e48e..476e89d0a 100644
--- a/src/libnr/nr-path.h
+++ b/src/libnr/nr-path.h
@@ -51,8 +51,6 @@ void nr_path_matrix_point_bbox_wind_distance (const_NRBPath const *bpath, NR::Ma
void nr_path_matrix_bbox_union(const_NRBPath *bpath, NR::Matrix const &m, NRRect *bbox);
-NArtBpath *nr_path_from_rect(NRRect const &r);
-
#endif
/*