summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeronimo Bareiro <gero.bare@gmail.com>2014-11-08 10:41:41 +0000
committerRabbitBot <>2014-11-08 10:41:41 +0000
commit4d26ebe2b8e9d220eda1eba6c38c0618bedab808 (patch)
treeb040c30f0ac07a19aec9efd2ba8a83e6b7faf388
parent9b7fb0c5e39f43434b5d1aa83274e2733f565776 (diff)
parent02a74ec0652f7c840e59f01149513909a264e8ee (diff)
downloadmidori-4d26ebe2b8e9d220eda1eba6c38c0618bedab808.tar.gz
Remove dead code from browser and preferences
-rw-r--r--midori/midori-browser.c4
-rw-r--r--midori/midori-preferences.c18
2 files changed, 1 insertions, 21 deletions
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index e0c21a64..59f5cd89 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -5448,7 +5448,6 @@ static const GtkToggleActionEntry toggle_entries[] =
NULL, G_CALLBACK (_action_statusbar_activate),
FALSE },
};
-static const guint toggle_entries_n = G_N_ELEMENTS (toggle_entries);
static const GtkRadioActionEntry encoding_entries[] =
{
@@ -5481,7 +5480,6 @@ static const GtkRadioActionEntry encoding_entries[] =
N_("Custom…"), "",
NULL, 1 },
};
-static const guint encoding_entries_n = G_N_ELEMENTS (encoding_entries);
typedef struct {
MidoriBrowser* browser;
@@ -7679,4 +7677,4 @@ midori_browser_quit (MidoriBrowser* browser)
g_return_if_fail (MIDORI_IS_BROWSER (browser));
g_signal_emit (browser, signals[QUIT], 0);
-} \ No newline at end of file
+}
diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c
index ee5a53d7..6af801ea 100644
--- a/midori/midori-preferences.c
+++ b/midori/midori-preferences.c
@@ -198,24 +198,6 @@ midori_preferences_toolbutton_clicked_cb (GtkWidget* toolbutton,
}
#endif
-static inline void
-midori_preferences_add_toolbutton (GtkWidget* toolbar,
- GtkWidget** toolbutton,
- const gchar* icon,
- const gchar* label,
- GtkWidget* page)
-{
-#if HAVE_OSX
- *toolbutton = GTK_WIDGET (*toolbutton ? gtk_radio_tool_button_new_from_widget (
- GTK_RADIO_TOOL_BUTTON (*toolbutton)) : gtk_radio_tool_button_new (NULL));
- gtk_tool_button_set_label (GTK_TOOL_BUTTON (*toolbutton), label);
- gtk_tool_button_set_stock_id (GTK_TOOL_BUTTON (*toolbutton), icon);
- gtk_toolbar_insert (GTK_TOOLBAR (toolbar), GTK_TOOL_ITEM (*toolbutton), -1);
- g_signal_connect (*toolbutton, "clicked",
- G_CALLBACK (midori_preferences_toolbutton_clicked_cb), page);
-#endif
-}
-
#if 0
static void
midori_preferences_list_dicts_cb (const gchar* lang_tag,