summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-06-14 14:10:20 +0200
committerBastien Nocera <hadess@hadess.net>2016-08-30 17:15:33 +0200
commit73a8d38946ee09d790e87f19df45fc1c6174c043 (patch)
tree1c251255234314cbb996664741f9c8b46f674a68
parenta90dc605d63c50fa8b640f2dcd743c261cf7599f (diff)
downloadgnome-control-center-73a8d38946ee09d790e87f19df45fc1c6174c043.tar.gz
network: Remove unused ->validate class implementations
The implementation of ->validate in the parent class will return TRUE if there's no implementation in the child class, so no need to implement those. https://bugzilla.gnome.org/show_bug.cgi?id=769230
-rw-r--r--panels/network/connection-editor/ce-page-details.c11
-rw-r--r--panels/network/connection-editor/ce-page-reset.c11
2 files changed, 0 insertions, 22 deletions
diff --git a/panels/network/connection-editor/ce-page-details.c b/panels/network/connection-editor/ce-page-details.c
index d08a526b3..0f96f4093 100644
--- a/panels/network/connection-editor/ce-page-details.c
+++ b/panels/network/connection-editor/ce-page-details.c
@@ -200,14 +200,6 @@ connect_details_page (CEPageDetails *page)
}
-static gboolean
-validate (CEPage *page,
- NMConnection *connection,
- GError **error)
-{
- return TRUE;
-}
-
static void
ce_page_details_init (CEPageDetails *page)
{
@@ -216,9 +208,6 @@ ce_page_details_init (CEPageDetails *page)
static void
ce_page_details_class_init (CEPageDetailsClass *class)
{
- CEPageClass *page_class= CE_PAGE_CLASS (class);
-
- page_class->validate = validate;
}
CEPage *
diff --git a/panels/network/connection-editor/ce-page-reset.c b/panels/network/connection-editor/ce-page-reset.c
index 5b24bdc37..bd8bd67a2 100644
--- a/panels/network/connection-editor/ce-page-reset.c
+++ b/panels/network/connection-editor/ce-page-reset.c
@@ -54,14 +54,6 @@ connect_reset_page (CEPageReset *page)
g_signal_connect (widget, "clicked", G_CALLBACK (reset_cb), page);
}
-static gboolean
-validate (CEPage *page,
- NMConnection *connection,
- GError **error)
-{
- return TRUE;
-}
-
static void
ce_page_reset_init (CEPageReset *page)
{
@@ -70,9 +62,6 @@ ce_page_reset_init (CEPageReset *page)
static void
ce_page_reset_class_init (CEPageResetClass *class)
{
- CEPageClass *page_class= CE_PAGE_CLASS (class);
-
- page_class->validate = validate;
}
CEPage *