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



commit c3049b9f7d1c5460400bed8837c111a53fcfb192
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]