[vala/staging: 13/22] libvaladoc: Drop unused to_string() methods
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 13/22] libvaladoc: Drop unused to_string() methods
- Date: Sun, 25 Nov 2018 13:09:11 +0000 (UTC)
commit 382ce9ed979431b2a6623b2fe7fcf0aa1d570206
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Jun 12 14:45:47 2018 +0200
libvaladoc: Drop unused to_string() methods
libvaladoc/api/nodetype.vala | 69 +------------------------------------------
libvaladoc/api/ownership.vala | 20 +------------
2 files changed, 2 insertions(+), 87 deletions(-)
---
diff --git a/libvaladoc/api/nodetype.vala b/libvaladoc/api/nodetype.vala
index e111903f2..cbb2503f6 100644
--- a/libvaladoc/api/nodetype.vala
+++ b/libvaladoc/api/nodetype.vala
@@ -45,73 +45,6 @@ public enum Valadoc.Api.NodeType {
SIGNAL,
STATIC_METHOD,
STRUCT,
- TYPE_PARAMETER;
-
- public unowned string to_string () {
- switch (this) {
- case CLASS:
- return "CLASS";
-
- case CONSTANT:
- return "CONSTANT";
-
- case CREATION_METHOD:
- return "CREATION_METHOD";
-
- case DELEGATE:
- return "DELEGATE";
-
- case ENUM:
- return "ENUM";
-
- case ENUM_VALUE:
- return "ENUM_VALUE";
-
- case ERROR_CODE:
- return "ERROR_CODE";
-
- case ERROR_DOMAIN:
- return "ERROR_DOMAIN";
-
- case FIELD:
- return "FIELD";
-
- case FORMAL_PARAMETER:
- return "FORMAL_PARAMETER";
-
- case INTERFACE:
- return "INTERFACE";
-
- case METHOD:
- return "METHOD";
-
- case NAMESPACE:
- return "NAMESPACE";
-
- case PACKAGE:
- return "PACKAGE";
-
- case PROPERTY:
- return "PROPERTY";
-
- case PROPERTY_ACCESSOR:
- return "PROPERTY_ACCESSOR";
-
- case SIGNAL:
- return "SIGNAL";
-
- case STATIC_METHOD:
- return "STATIC_METHOD";
-
- case STRUCT:
- return "STRUCT";
-
- case TYPE_PARAMETER:
- return "TYPE_PARAMETER";
-
- default:
- assert_not_reached ();
- }
- }
+ TYPE_PARAMETER
}
diff --git a/libvaladoc/api/ownership.vala b/libvaladoc/api/ownership.vala
index 38cba6257..27f318a44 100644
--- a/libvaladoc/api/ownership.vala
+++ b/libvaladoc/api/ownership.vala
@@ -25,23 +25,5 @@ public enum Valadoc.Api.Ownership {
DEFAULT,
UNOWNED,
OWNED,
- WEAK;
-
- public unowned string to_string () {
- switch (this) {
- case Ownership.UNOWNED:
- return "unowned";
-
- case Ownership.OWNED:
- return "owned";
-
- case Ownership.WEAK:
- return "weak";
-
- case Ownership.DEFAULT:
- return "";
- }
-
- assert_not_reached ();
- }
+ WEAK
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]