[gegl] buffer: remove unused datamembers
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: remove unused datamembers
- Date: Thu, 22 Mar 2012 22:47:56 +0000 (UTC)
commit 72fa4d6d145b4014780dcfb6e4b3def88ce77b38
Author: Ãyvind KolÃs <pippin gimp org>
Date: Thu Mar 22 22:47:17 2012 +0000
buffer: remove unused datamembers
The coordinates of tiles fetched with gegl_buffer_get is no longer used since
voiding buffers is implemented more efficiently now.
gegl/buffer/gegl-buffer-private.h | 6 ------
gegl/buffer/gegl-buffer.c | 19 -------------------
2 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-private.h b/gegl/buffer/gegl-buffer-private.h
index 0780c13..5d4b8de 100644
--- a/gegl/buffer/gegl-buffer-private.h
+++ b/gegl/buffer/gegl-buffer-private.h
@@ -57,12 +57,6 @@ struct _GeglBuffer
GeglTileStorage *tile_storage;
- gint min_x; /* the extent of tile indices that has been */
- gint min_y; /* produced by _get_tile for this buffer */
- gint max_x; /* this is used in gegl_buffer_void to narrow */
- gint max_y; /* down the tiles kill commands are sent for */
- gint max_z;
-
gint tile_width;
gint tile_height;
gchar *path;
diff --git a/gegl/buffer/gegl-buffer.c b/gegl/buffer/gegl-buffer.c
index 2053b3c..339c846 100644
--- a/gegl/buffer/gegl-buffer.c
+++ b/gegl/buffer/gegl-buffer.c
@@ -731,19 +731,6 @@ gegl_buffer_get_tile (GeglTileSource *source,
{
GeglBuffer *buffer = GEGL_BUFFER (handler);
- /* XXX: lock buffer? */
-
- if (x < buffer->min_x)
- buffer->min_x = x;
- if (y < buffer->min_y)
- buffer->min_y = y;
- if (x > buffer->max_x)
- buffer->max_x = x;
- if (y > buffer->max_y)
- buffer->max_y = y;
- if (z > buffer->max_z)
- buffer->max_z = z;
-
/* storing information in tile, to enable the dispose function of the
* tile instance to "hook" back to the storage with correct
* coordinates.
@@ -957,12 +944,6 @@ gegl_buffer_init (GeglBuffer *buffer)
buffer->format = NULL;
buffer->hot_tile = NULL;
- buffer->min_x = 0;
- buffer->min_y = 0;
- buffer->max_x = 0;
- buffer->max_y = 0;
- buffer->max_z = 0;
-
buffer->path = NULL;
buffer->tile_width = 128;
buffer->tile_height = 64;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]