[epiphany] notebook: Remove now-unused code
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] notebook: Remove now-unused code
- Date: Mon, 13 May 2019 14:59:33 +0000 (UTC)
commit ea4fb468bb2e4e63fab985f8924d89777abb8ff7
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon May 13 09:58:54 2019 -0500
notebook: Remove now-unused code
This code will need to be resurrected.
src/ephy-notebook.c | 18 ------------------
1 file changed, 18 deletions(-)
---
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 54e6c0513..528fb54a1 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -467,23 +467,6 @@ show_tabs_changed_cb (GSettings *settings,
update_tabs_visibility (nb, FALSE);
}
-static gint
-get_last_pinned_tab_pos (GtkNotebook *notebook)
-{
- gint pages = gtk_notebook_get_n_pages (GTK_NOTEBOOK (notebook));
- gint i;
- gint found = -1;
-
- for (i = 0; i < pages; i++) {
- GtkWidget *child = gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), i);
-
- if (ephy_notebook_tab_is_pinned (EPHY_NOTEBOOK (notebook), EPHY_EMBED (child)))
- found = i;
- }
-
- return found;
-}
-
static void
ephy_notebook_init (EphyNotebook *notebook)
{
@@ -958,7 +941,6 @@ ephy_notebook_tab_set_pinned (EphyNotebook *notebook,
expanded = FALSE;
} else {
expanded = g_settings_get_boolean (EPHY_SETTINGS_UI, EPHY_PREFS_UI_EXPAND_TABS_BAR);
- page_reordered_cb (GTK_NOTEBOOK (notebook), embed, 0, NULL);
}
gtk_container_child_set (GTK_CONTAINER (notebook), embed, "tab-expand", expanded, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]