[epiphany/wip/exalm/more-cleanups: 1/2] location-entry: Remove dead code
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/more-cleanups: 1/2] location-entry: Remove dead code
- Date: Tue, 22 Feb 2022 14:49:35 +0000 (UTC)
commit 8ebc647131c77a9de4234bef2ad1a32f2632a8a7
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Feb 22 18:56:53 2022 +0500
location-entry: Remove dead code
lib/widgets/ephy-location-entry.c | 17 -----------------
1 file changed, 17 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 036d5d592..ebe4b6864 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -85,7 +85,6 @@ struct _EphyLocationEntry {
guint user_changed : 1;
guint can_redo : 1;
guint block_update : 1;
- guint original_address : 1;
EphySecurityLevel security_level;
EphyAdaptiveMode adaptive_mode;
@@ -234,16 +233,6 @@ ephy_location_entry_activate (EphyLocationEntry *entry)
g_signal_emit_by_name (entry->url_entry, "activate");
}
-static void
-update_address_state (EphyLocationEntry *entry)
-{
- const char *text;
-
- text = gtk_entry_get_text (GTK_ENTRY (entry->url_entry));
- entry->original_address = text != NULL &&
- g_str_hash (text) == entry->hash;
-}
-
static const char *
ephy_location_entry_title_widget_get_address (EphyTitleWidget *widget)
{
@@ -309,10 +298,6 @@ ephy_location_entry_title_widget_set_address (EphyTitleWidget *widget,
dzl_suggestion_entry_hide_suggestions (DZL_SUGGESTION_ENTRY (entry->url_entry));
entry->block_update = FALSE;
- /* We need to call update_address_state() here, as the 'changed' signal
- * may not get called if the user has typed in the exact correct url */
- update_address_state (entry);
-
/* Now restore the selection.
* Note that it's not owned by the entry anymore!
*/
@@ -584,8 +569,6 @@ static void
editable_changed_cb (GtkEditable *editable,
EphyLocationEntry *entry)
{
- update_address_state (entry);
-
if (entry->block_update == TRUE)
return;
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]