[network-manager-pptp/th/vpn-editor-split-bgo766623: 6/21] properties: remove unused pptp_plugin_ui_error_get_type() gtype
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-pptp/th/vpn-editor-split-bgo766623: 6/21] properties: remove unused pptp_plugin_ui_error_get_type() gtype
- Date: Wed, 18 May 2016 19:04:38 +0000 (UTC)
commit 25d052f05015fec370665a0bfe7e778bd7fd056f
Author: Thomas Haller <thaller redhat com>
Date: Wed May 18 13:44:30 2016 +0200
properties: remove unused pptp_plugin_ui_error_get_type() gtype
properties/nm-pptp.c | 29 -----------------------------
properties/nm-pptp.h | 3 ---
2 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/properties/nm-pptp.c b/properties/nm-pptp.c
index 477f5b2..18fc7cf 100644
--- a/properties/nm-pptp.c
+++ b/properties/nm-pptp.c
@@ -106,35 +106,6 @@ nmv_editor_plugin_error_quark (void)
return error_quark;
}
-/* This should really be standard. */
-#define ENUM_ENTRY(NAME, DESC) { NAME, "" #NAME "", DESC }
-
-GType
-pptp_plugin_ui_error_get_type (void)
-{
- static GType etype = 0;
-
- if (etype == 0) {
- static const GEnumValue values[] = {
- /* Unknown error. */
- ENUM_ENTRY (NMV_EDITOR_PLUGIN_ERROR_UNKNOWN, "UnknownError"),
- /* The connection was missing invalid. */
- ENUM_ENTRY (NMV_EDITOR_PLUGIN_ERROR_INVALID_CONNECTION, "InvalidConnection"),
- /* The specified property was invalid. */
- ENUM_ENTRY (NMV_EDITOR_PLUGIN_ERROR_INVALID_PROPERTY, "InvalidProperty"),
- /* The specified property was missing and is required. */
- ENUM_ENTRY (NMV_EDITOR_PLUGIN_ERROR_MISSING_PROPERTY, "MissingProperty"),
- /* The file to import could not be read. */
- ENUM_ENTRY (NMV_EDITOR_PLUGIN_ERROR_FILE_NOT_READABLE, "FileNotReadable"),
- /* The file to import could was not an PPTP client file. */
- ENUM_ENTRY (NMV_EDITOR_PLUGIN_ERROR_FILE_NOT_VPN, "FileNotPPTP"),
- { 0, 0, 0 }
- };
- etype = g_enum_register_static ("PptpPluginUiError", values);
- }
- return etype;
-}
-
static gboolean
check_validity (PptpPluginUiWidget *self, GError **error)
{
diff --git a/properties/nm-pptp.h b/properties/nm-pptp.h
index 2812270..9cfcc87 100644
--- a/properties/nm-pptp.h
+++ b/properties/nm-pptp.h
@@ -35,9 +35,6 @@ typedef enum
NMV_EDITOR_PLUGIN_ERROR_FILE_NOT_VPN,
} PptpPluginUiError;
-#define PPTP_TYPE_PLUGIN_UI_ERROR (pptp_plugin_ui_error_get_type ())
-GType pptp_plugin_ui_error_get_type (void);
-
#define NMV_EDITOR_PLUGIN_ERROR (nmv_editor_plugin_error_quark ())
GQuark nmv_editor_plugin_error_quark (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]