[librsvg/next: 17/31] Remove unused function
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/next: 17/31] Remove unused function
- Date: Fri, 21 Oct 2011 21:22:17 +0000 (UTC)
commit 8889e9f07cceaed69c8c6568e37048b1c284f0ff
Author: Christian Persch <chpe gnome org>
Date: Thu Sep 15 19:27:01 2011 +0200
Remove unused function
rsvg-bpath-util.c | 23 -----------------------
rsvg-bpath-util.h | 1 -
2 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/rsvg-bpath-util.c b/rsvg-bpath-util.c
index e330a21..1c713d9 100644
--- a/rsvg-bpath-util.c
+++ b/rsvg-bpath-util.c
@@ -49,29 +49,6 @@ rsvg_bpath_def_new (void)
return bpd;
}
-RsvgBpathDef *
-rsvg_bpath_def_new_from (RsvgBpath * path)
-{
- RsvgBpathDef *bpd;
- int i;
-
- g_return_val_if_fail (path != NULL, NULL);
-
- for (i = 0; path[i].code != RSVG_END; i++);
- if (i <= 0)
- return rsvg_bpath_def_new ();
-
- bpd = g_new (RsvgBpathDef, 1);
-
- bpd->n_bpath = i;
- bpd->n_bpath_max = i;
- bpd->moveto_idx = -1;
- bpd->bpath = g_new (RsvgBpath, i);
-
- memcpy (bpd->bpath, path, i * sizeof (RsvgBpath));
- return bpd;
-}
-
void
rsvg_bpath_def_free (RsvgBpathDef * bpd)
{
diff --git a/rsvg-bpath-util.h b/rsvg-bpath-util.h
index 8a84d77..f1204dd 100644
--- a/rsvg-bpath-util.h
+++ b/rsvg-bpath-util.h
@@ -60,7 +60,6 @@ struct _RsvgBpathDef {
};
RsvgBpathDef *rsvg_bpath_def_new (void);
-RsvgBpathDef *rsvg_bpath_def_new_from (RsvgBpath * bpath);
void rsvg_bpath_def_free (RsvgBpathDef * bpd);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]