gimp r28034 - in trunk: . app/core



Author: martinn
Date: Sat Feb 14 18:53:50 2009
New Revision: 28034
URL: http://svn.gnome.org/viewvc/gimp?rev=28034&view=rev

Log:
Remove gimp_drawable_update_tile_source_node()

Remove gimp_drawable_update_tile_source_node(), it was not useful.

Modified:
   trunk/ChangeLog
   trunk/app/core/gimpdrawable.c

Modified: trunk/app/core/gimpdrawable.c
==============================================================================
--- trunk/app/core/gimpdrawable.c	(original)
+++ trunk/app/core/gimpdrawable.c	Sat Feb 14 18:53:50 2009
@@ -723,17 +723,6 @@
 }
 
 static void
-gimp_drawable_update_tile_source_node (GimpDrawable *drawable)
-{
-  if (! drawable->private->tile_source_node)
-    return;
-
-  gegl_node_set (drawable->private->tile_source_node,
-                 "tile-manager", drawable->private->tiles,
-                 NULL);
-}
-
-static void
 gimp_drawable_real_set_tiles (GimpDrawable *drawable,
                               gboolean      push_undo,
                               const gchar  *undo_desc,
@@ -782,7 +771,10 @@
   if (old_has_alpha != gimp_drawable_has_alpha (drawable))
     gimp_drawable_alpha_changed (drawable);
 
-  gimp_drawable_update_tile_source_node (drawable);
+  if (drawable->private->tile_source_node)
+    gegl_node_set (drawable->private->tile_source_node,
+                   "tile-manager", drawable->private->tiles,
+                   NULL);
 }
 
 static GeglNode *
@@ -1121,7 +1113,10 @@
   drawable->private->preview_cache = NULL;
   drawable->private->preview_valid = FALSE;
 
-  gimp_drawable_update_tile_source_node (drawable);
+  if (drawable->private->tile_source_node)
+    gegl_node_set (drawable->private->tile_source_node,
+                   "tile-manager", drawable->private->tiles,
+                   NULL);
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]