remove obsolete assertion and redundant cast.

2008-10-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimplayer.c (gimp_layer_get_node): remove obsolete
	assertion and redundant cast.


svn path=/trunk/; revision=27229
This commit is contained in:
Michael Natterer 2008-10-11 10:23:01 +00:00 committed by Michael Natterer
parent 302bda6c66
commit e28e864ac6
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2008-10-11 Michael Natterer <mitch@gimp.org>
* app/core/gimplayer.c (gimp_layer_get_node): remove obsolete
assertion and redundant cast.
2008-10-11 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawablestack.c: add GimpContainer::add()

View file

@ -525,14 +525,12 @@ gimp_layer_get_node (GimpDrawable *drawable)
GeglNode *input;
GeglNode *output;
g_return_val_if_fail (GIMP_IS_LAYER (layer), NULL);
if (layer->node)
return layer->node;
layer->node = gegl_node_new ();
source = gimp_drawable_get_source_node (GIMP_DRAWABLE (layer));
source = gimp_drawable_get_source_node (drawable);
gegl_node_add_child (layer->node, source);
if (layer->mask)