[gtk/wip/otte/whatever: 1/5] a11y: Remove double initialization of variables



commit 981071399ffe08f0972996b2b6a2da77282adff7
Author: Benjamin Otte <otte redhat com>
Date:   Fri Jun 26 14:05:02 2020 +0200

    a11y: Remove double initialization of variables

 gtk/a11y/gtkcellaccessible.c          | 1 -
 gtk/a11y/gtkpasswordentryaccessible.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtk/a11y/gtkcellaccessible.c b/gtk/a11y/gtkcellaccessible.c
index 239032331e..e55144ba02 100644
--- a/gtk/a11y/gtkcellaccessible.c
+++ b/gtk/a11y/gtkcellaccessible.c
@@ -295,7 +295,6 @@ gtk_cell_accessible_action_do_action (AtkAction *action,
   GtkCellAccessible *cell = GTK_CELL_ACCESSIBLE (action);
   GtkCellAccessibleParent *parent;
 
-  cell = GTK_CELL_ACCESSIBLE (action);
   if (gtk_accessible_get_widget (GTK_ACCESSIBLE (cell)) == NULL)
     return FALSE;
 
diff --git a/gtk/a11y/gtkpasswordentryaccessible.c b/gtk/a11y/gtkpasswordentryaccessible.c
index d071e049e0..3b3236767f 100644
--- a/gtk/a11y/gtkpasswordentryaccessible.c
+++ b/gtk/a11y/gtkpasswordentryaccessible.c
@@ -65,7 +65,7 @@ static gunichar
 gtk_password_entry_accessible_get_character_at_offset (AtkText *atk_text,
                                                        gint     offset)
 {
-  GtkText *text = get_text_widget (GTK_ACCESSIBLE (atk_text));
+  GtkText *text;
   char *contents, *index;
   gunichar result;
 


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