[gegl] Remove tile_storage_idle
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Remove tile_storage_idle
- Date: Sat, 23 Nov 2013 03:50:24 +0000 (UTC)
commit 7f004ebc464563c03f28eabbf23ec50452672b0d
Author: Daniel Sabo <DanielSabo gmail com>
Date: Tue Nov 19 22:57:21 2013 -0800
Remove tile_storage_idle
Because none of the gegl tests use a mainloop this function
is never tested, and hooking up an idle handler for every
buffer created is somewhat excessive.
gegl/buffer/gegl-tile-storage.c | 23 -----------------------
gegl/buffer/gegl-tile-storage.h | 2 --
2 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/gegl/buffer/gegl-tile-storage.c b/gegl/buffer/gegl-tile-storage.c
index 875f1c4..360e010 100644
--- a/gegl/buffer/gegl-tile-storage.c
+++ b/gegl/buffer/gegl-tile-storage.c
@@ -51,20 +51,6 @@ enum
guint gegl_tile_storage_signals[LAST_SIGNAL] = { 0 };
-static gboolean
-tile_storage_idle (gpointer data)
-{
- GeglTileStorage *tile_storage = GEGL_TILE_STORAGE (data);
-
- if (0 /* nothing to do*/)
- {
- tile_storage->idle_swapper = 0;
- return FALSE;
- }
-
- return gegl_tile_source_idle (GEGL_TILE_SOURCE (tile_storage));
-}
-
GeglTileBackend * gegl_buffer_backend (GeglBuffer *buffer);
GeglTileStorage *
@@ -148,12 +134,6 @@ gegl_tile_storage_new (GeglTileBackend *backend)
((GeglTileBackend *)gegl_buffer_backend2 ((void*)tile_storage))->priv->storage = (gpointer)
tile_storage;
- tile_storage->idle_swapper = g_timeout_add_full (G_PRIORITY_LOW,
- 250,
- tile_storage_idle,
- tile_storage,
- NULL);
-
return tile_storage;
}
@@ -162,9 +142,6 @@ gegl_tile_storage_finalize (GObject *object)
{
GeglTileStorage *self = GEGL_TILE_STORAGE (object);
- if (self->idle_swapper)
- g_source_remove (self->idle_swapper);
-
if (self->path)
g_free (self->path);
g_mutex_clear (&self->mutex);
diff --git a/gegl/buffer/gegl-tile-storage.h b/gegl/buffer/gegl-tile-storage.h
index c9552b3..4da6169 100644
--- a/gegl/buffer/gegl-tile-storage.h
+++ b/gegl/buffer/gegl-tile-storage.h
@@ -51,8 +51,6 @@ struct _GeglTileStorage
gchar *path;
gint seen_zoom; /* the maximum zoom level we've seen tiles for */
- guint idle_swapper;
-
GeglTile *hot_tile; /* cached tile for speeding up gegl_buffer_get_pixel
and gegl_buffer_set_pixel (1x1 sized gets/sets)*/
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]