[gnome-control-center] network: Remove unused ->validate class implementations
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Remove unused ->validate class implementations
- Date: Tue, 30 Aug 2016 15:18:07 +0000 (UTC)
commit 73a8d38946ee09d790e87f19df45fc1c6174c043
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jun 14 14:10:20 2016 +0200
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
panels/network/connection-editor/ce-page-details.c | 11 -----------
panels/network/connection-editor/ce-page-reset.c | 11 -----------
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 d08a526..0f96f40 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 5b24bdc..bd8bd67 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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]