aboutsummaryrefslogtreecommitdiffstats
path: root/libgnomecanvas/gnome-canvas-util.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-10-13 23:58:50 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:49:59 +0800
commitcf21582a93e0b40b1400891b0ea2b0d52482c759 (patch)
tree7d5e6c1f9f70d1229734c8882639209bbcbd5a64 /libgnomecanvas/gnome-canvas-util.c
parent372b46d528dc9db5c7eb03e1b5f16580e1aba9a1 (diff)
downloadgsoc2013-evolution-cf21582a93e0b40b1400891b0ea2b0d52482c759.tar
gsoc2013-evolution-cf21582a93e0b40b1400891b0ea2b0d52482c759.tar.gz
gsoc2013-evolution-cf21582a93e0b40b1400891b0ea2b0d52482c759.tar.bz2
gsoc2013-evolution-cf21582a93e0b40b1400891b0ea2b0d52482c759.tar.lz
gsoc2013-evolution-cf21582a93e0b40b1400891b0ea2b0d52482c759.tar.xz
gsoc2013-evolution-cf21582a93e0b40b1400891b0ea2b0d52482c759.tar.zst
gsoc2013-evolution-cf21582a93e0b40b1400891b0ea2b0d52482c759.zip
gnome-canvas: Remove GnomeCanvasPoints
It's unused by now.
Diffstat (limited to 'libgnomecanvas/gnome-canvas-util.c')
-rw-r--r--libgnomecanvas/gnome-canvas-util.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/libgnomecanvas/gnome-canvas-util.c b/libgnomecanvas/gnome-canvas-util.c
index bc6b1ba968..d396db0a1e 100644
--- a/libgnomecanvas/gnome-canvas-util.c
+++ b/libgnomecanvas/gnome-canvas-util.c
@@ -53,67 +53,6 @@
#include <libart_lgpl/art_rect_svp.h>
/**
- * gnome_canvas_points_new:
- * @num_points: The number of points to allocate space for in the array.
- *
- * Creates a structure that should be used to pass an array of points to
- * items.
- *
- * Return value: A newly-created array of points. It should be filled in
- * by the user.
- **/
-GnomeCanvasPoints *
-gnome_canvas_points_new (gint num_points)
-{
- GnomeCanvasPoints *points;
-
- g_return_val_if_fail (num_points > 1, NULL);
-
- points = g_new (GnomeCanvasPoints, 1);
- points->num_points = num_points;
- points->coords = g_new (double, 2 * num_points);
- points->ref_count = 1;
-
- return points;
-}
-
-/**
- * gnome_canvas_points_ref:
- * @points: A canvas points structure.
- *
- * Increases the reference count of the specified points structure.
- *
- * Return value: The canvas points structure itself.
- **/
-GnomeCanvasPoints *
-gnome_canvas_points_ref (GnomeCanvasPoints *points)
-{
- g_return_val_if_fail (points != NULL, NULL);
-
- points->ref_count += 1;
- return points;
-}
-
-/**
- * gnome_canvas_points_free:
- * @points: A canvas points structure.
- *
- * Decreases the reference count of the specified points structure. If it
- * reaches zero, then the structure is freed.
- **/
-void
-gnome_canvas_points_free (GnomeCanvasPoints *points)
-{
- g_return_if_fail (points != NULL);
-
- points->ref_count -= 1;
- if (points->ref_count == 0) {
- g_free (points->coords);
- g_free (points);
- }
-}
-
-/**
* gnome_canvas_get_miter_points:
* @x1: X coordinate of the first point
* @y1: Y coordinate of the first point