[gegl] Remove height & width props from TileStorage
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Remove height & width props from TileStorage
- Date: Tue, 21 Jan 2014 22:31:52 +0000 (UTC)
commit 96c6db26dce3107e083ebcbd4cb03c18c2b945dc
Author: Daniel Sabo <DanielSabo gmail com>
Date: Tue Jan 21 14:15:25 2014 -0800
Remove height & width props from TileStorage
gegl/buffer/gegl-buffer.c | 7 -------
gegl/buffer/gegl-tile-storage.c | 2 --
gegl/buffer/gegl-tile-storage.h | 2 --
3 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer.c b/gegl/buffer/gegl-buffer.c
index dfb3c3e..743acbd 100644
--- a/gegl/buffer/gegl-buffer.c
+++ b/gegl/buffer/gegl-buffer.c
@@ -643,13 +643,6 @@ gegl_buffer_constructor (GType type,
buffer->extent.width = GEGL_BUFFER (source)->extent.width;
buffer->extent.height = GEGL_BUFFER (source)->extent.height;
}
- else if (GEGL_IS_TILE_STORAGE (source))
- {
- buffer->extent.x = 0;
- buffer->extent.y = 0;
- buffer->extent.width = GEGL_TILE_STORAGE (source)->width;
- buffer->extent.height = GEGL_TILE_STORAGE (source)->height;
- }
else
{
buffer->extent.x = 0;
diff --git a/gegl/buffer/gegl-tile-storage.c b/gegl/buffer/gegl-tile-storage.c
index 26184b0..ea7939f 100644
--- a/gegl/buffer/gegl-tile-storage.c
+++ b/gegl/buffer/gegl-tile-storage.c
@@ -65,8 +65,6 @@ gegl_tile_storage_new (GeglTileBackend *backend)
tile_storage->seen_zoom = 0;
g_mutex_init (&tile_storage->mutex);
- tile_storage->width = G_MAXINT;
- tile_storage->height = G_MAXINT;
tile_handler_chain = GEGL_TILE_HANDLER_CHAIN (tile_storage);
handler = GEGL_TILE_HANDLER (tile_storage);
diff --git a/gegl/buffer/gegl-tile-storage.h b/gegl/buffer/gegl-tile-storage.h
index ded30e1..a55dc2e 100644
--- a/gegl/buffer/gegl-tile-storage.h
+++ b/gegl/buffer/gegl-tile-storage.h
@@ -46,8 +46,6 @@ struct _GeglTileStorage
gint tile_height;
gint tile_size;
gint px_size;
- gint width;
- gint height;
gint seen_zoom; /* the maximum zoom level we've seen tiles for */
GeglTile *hot_tile; /* cached tile for speeding up gegl_buffer_get_pixel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]