[epiphany] Reenable and placate -Wunused-function
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Reenable and placate -Wunused-function
- Date: Sun, 8 Nov 2015 00:10:43 +0000 (UTC)
commit 374ac1c41664fd988f473c0f07c13bdf2764faf2
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Nov 7 17:17:06 2015 -0600
Reenable and placate -Wunused-function
configure.ac | 2 +-
embed/web-extension/uri-tester.c | 4 ++++
lib/widgets/ephy-download-widget.c | 11 -----------
lib/widgets/ephy-downloads-progress-icon.c | 6 ------
lib/widgets/ephy-location-entry.c | 5 -----
5 files changed, 5 insertions(+), 23 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cbb487b..a18ab31 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,7 +38,7 @@ AX_COMPILER_FLAGS([WARN_CFLAGS], [WARN_LDFLAGS], [$ax_is_release], [-Wdeclaratio
dnl TODO: Remove all of these! These warnings should be fixed, not
dnl silenced. At least, for the most part. -Wswitch-enum really does
dnl seem pretty dumb.
- [-Wno-unused-function -Wno-unused-variable -Wno-old-style-definition -Wno-shadow
-Wno-format-nonliteral -Wno-deprecated-declarations -Wno-switch-enum -Wno-switch-default -Wno-redundant-decls
-Wno-discarded-qualifiers -Wno-sign-compare])
+ [-Wno-unused-variable -Wno-old-style-definition -Wno-shadow -Wno-format-nonliteral
-Wno-deprecated-declarations -Wno-switch-enum -Wno-switch-default -Wno-redundant-decls
-Wno-discarded-qualifiers -Wno-sign-compare])
AC_PROG_CC
diff --git a/embed/web-extension/uri-tester.c b/embed/web-extension/uri-tester.c
index 1915651..f2d96b7 100644
--- a/embed/web-extension/uri-tester.c
+++ b/embed/web-extension/uri-tester.c
@@ -271,6 +271,9 @@ uri_tester_load_filters (UriTester *tester)
uri_tester_set_filters (tester, g_slist_reverse(list));
}
+#if 0
+TODO: Use this to create a filters dialog, or something.
+
static void
uri_tester_save_filters (UriTester *tester)
{
@@ -294,6 +297,7 @@ uri_tester_save_filters (UriTester *tester)
}
g_free (filepath);
}
+#endif
static inline int
uri_tester_check_rule (UriTester *tester,
diff --git a/lib/widgets/ephy-download-widget.c b/lib/widgets/ephy-download-widget.c
index ddbfc86..3eddbef 100644
--- a/lib/widgets/ephy-download-widget.c
+++ b/lib/widgets/ephy-download-widget.c
@@ -131,17 +131,6 @@ get_remaining_time (guint64 content_length,
}
static void
-download_clicked_cb (GtkButton *button,
- EphyDownloadWidget *widget)
-{
- EphyDownload *download;
-
- download = widget->priv->download;
- if (ephy_download_do_download_action (download, EPHY_DOWNLOAD_ACTION_AUTO))
- gtk_widget_destroy (GTK_WIDGET (widget));
-}
-
-static void
update_download_icon (EphyDownloadWidget *widget)
{
GIcon *icon;
diff --git a/lib/widgets/ephy-downloads-progress-icon.c b/lib/widgets/ephy-downloads-progress-icon.c
index 2539e3d..28172e0 100644
--- a/lib/widgets/ephy-downloads-progress-icon.c
+++ b/lib/widgets/ephy-downloads-progress-icon.c
@@ -37,12 +37,6 @@ struct _EphyDownloadsProgressIconClass
G_DEFINE_TYPE (EphyDownloadsProgressIcon, ephy_downloads_progress_icon, GTK_TYPE_DRAWING_AREA)
-static void
-download_added_cb (EphyDownloadsProgressIcon *progress_icon,
- EphyDownload *download)
-{
-}
-
static gboolean
ephy_downloads_progress_icon_draw (GtkWidget *widget,
cairo_t *cr)
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 629be35..d401976 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -95,11 +95,6 @@ static const GtkTargetEntry url_drag_types [] =
static gboolean ephy_location_entry_reset_internal (EphyLocationEntry *, gboolean);
-static void textcell_data_func (GtkCellLayout *cell_layout,
- GtkCellRenderer *cell,
- GtkTreeModel *tree_model,
- GtkTreeIter *iter,
- gpointer data);
static void extracell_data_func (GtkCellLayout *cell_layout,
GtkCellRenderer *cell,
GtkTreeModel *tree_model,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]