[epiphany/mcatanzaro/cppcheck: 11/12] location-entry: remove accidental shadowing



commit cf261e851b04a91ec5c94658a106d61faa81b3fb
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Nov 17 10:42:34 2019 -0600

    location-entry: remove accidental shadowing

 lib/widgets/ephy-location-entry.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index bc5460881..b5d1c0579 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -529,9 +529,6 @@ entry_key_press_cb (GtkEntry          *entry,
       }
 
       if (state == GDK_CONTROL_MASK) {
-        g_autofree gchar *text = g_strdup (gtk_entry_get_text (GTK_ENTRY (location_entry->url_entry)));
-        gchar *url = g_strstrip (text);
-
         /* Remove control mask to prevent opening address in a new window */
         event->state &= ~GDK_CONTROL_MASK;
 


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