[gimp/metadata-browser] app: remove two duplicated variable inits
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: remove two duplicated variable inits
- Date: Wed, 12 Sep 2012 22:51:53 +0000 (UTC)
commit 9cfac2c698ff2257a992bb2ccbd0c071e5bcb7ea
Author: Mikael Magnusson <mikachu gmail com>
Date: Thu Oct 14 17:25:07 2010 +0200
app: remove two duplicated variable inits
app/composite/gimp-composite-generic.c | 2 +-
app/display/gimpdisplayshell-dnd.c | 2 --
2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/app/composite/gimp-composite-generic.c b/app/composite/gimp-composite-generic.c
index 18726f0..0071084 100644
--- a/app/composite/gimp-composite-generic.c
+++ b/app/composite/gimp-composite-generic.c
@@ -1399,7 +1399,7 @@ gimp_composite_scale_any_any_any_generic (GimpCompositeContext * ctx)
{
const guchar *src1 = ctx->A;
guchar *dest = ctx->D;
- guint length = ctx->n_pixels;
+ guint length;
guint bytes1 = (ctx->pixelformat_A == GIMP_PIXELFORMAT_V8) ? 1
: (ctx->pixelformat_A == GIMP_PIXELFORMAT_VA8) ? 2
: (ctx->pixelformat_A == GIMP_PIXELFORMAT_RGB8) ? 3 : (ctx->pixelformat_A == GIMP_PIXELFORMAT_RGBA8) ? 4 : 0;
diff --git a/app/display/gimpdisplayshell-dnd.c b/app/display/gimpdisplayshell-dnd.c
index f8e8898..0d78fb0 100644
--- a/app/display/gimpdisplayshell-dnd.c
+++ b/app/display/gimpdisplayshell-dnd.c
@@ -689,8 +689,6 @@ gimp_display_shell_drop_pixbuf (GtkWidget *widget,
{
GimpItem *new_item = GIMP_ITEM (new_layer);
- new_item = GIMP_ITEM (new_layer);
-
gimp_image_undo_group_start (image, GIMP_UNDO_GROUP_EDIT_PASTE,
_("Drop New Layer"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]