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.
parent 3ef55de6
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment