removed if(image) checks where the image can't be NULL.

2005-07-09  Michael Natterer  <mitch@gimp.org>

	* app/core/gimplayer.c: removed if(image) checks where the image
	can't be NULL.
This commit is contained in:
Michael Natterer 2005-07-09 21:47:54 +00:00 committed by Michael Natterer
parent 841144efbd
commit 9b9052b866
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2005-07-09 Michael Natterer <mitch@gimp.org>
* app/core/gimplayer.c: removed if(image) checks where the image
can't be NULL.
2005-07-09 Sven Neumann <sven@gimp.org>
* app/base/pixel-surround.[ch]: formatting.

View File

@ -1683,8 +1683,7 @@ gimp_layer_set_opacity (GimpLayer *layer,
{
GimpImage *gimage = gimp_item_get_image (GIMP_ITEM (layer));
if (gimage)
gimp_image_undo_push_layer_opacity (gimage, NULL, layer);
gimp_image_undo_push_layer_opacity (gimage, NULL, layer);
}
layer->opacity = opacity;
@ -1719,8 +1718,7 @@ gimp_layer_set_mode (GimpLayer *layer,
{
GimpImage *gimage = gimp_item_get_image (GIMP_ITEM (layer));
if (gimage)
gimp_image_undo_push_layer_mode (gimage, NULL, layer);
gimp_image_undo_push_layer_mode (gimage, NULL, layer);
}
layer->mode = mode;
@ -1755,8 +1753,7 @@ gimp_layer_set_preserve_trans (GimpLayer *layer,
{
GimpImage *gimage = gimp_item_get_image (GIMP_ITEM (layer));
if (gimage)
gimp_image_undo_push_layer_preserve_trans (gimage, NULL, layer);
gimp_image_undo_push_layer_preserve_trans (gimage, NULL, layer);
}
layer->preserve_trans = preserve ? TRUE : FALSE;