[valadoc] libvaladoc/api: TypeReference: Drop type_name



commit efc90061e5bfa6bfbdbf48d95cc39125596e7e17
Author: Florian Brosch <flo brosch gmail com>
Date:   Fri Feb 18 01:47:15 2011 +0100

    libvaladoc/api: TypeReference: Drop type_name

 src/libvaladoc/api/typereference.vala |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/src/libvaladoc/api/typereference.vala b/src/libvaladoc/api/typereference.vala
index 412da42..8b7428b 100644
--- a/src/libvaladoc/api/typereference.vala
+++ b/src/libvaladoc/api/typereference.vala
@@ -129,36 +129,6 @@ public class Valadoc.Api.TypeReference : Item {
 		}
 	}
 
-	// remove
-	private string extract_type_name ( Vala.DataType vdtype ) {
-		if (vdtype is Vala.VoidType) {
-			return "void";
-		}
-		else if (vdtype is Vala.PointerType) {
-			return this.extract_type_name (((Vala.PointerType)vdtype).base_type);
-		}
-		else if (vdtype is Vala.DelegateType) {
-			return ((Vala.DelegateType)this.vtyperef).delegate_symbol.name;
-		}
-		else if (vdtype is Vala.MethodType) {
-			return ((Vala.MethodType)this.vtyperef).method_symbol.name;
-		}
-		else if (vdtype is Vala.SignalType) {
-			return ((Vala.SignalType)this.vtyperef).signal_symbol.name;
-		}
-		else if (vdtype is Vala.ArrayType) {
-			this.extract_type_name (((Vala.ArrayType)vdtype).element_type);
-		}
-		return vtyperef.to_string ();
-	}
-
-	// remove
-	public string type_name {
-		owned get {
-			return this.extract_type_name (this.vtyperef);
-		}
-	}
-
 	public string? get_dbus_type_signature () {
 		return Vala.DBusModule.get_type_signature (vtyperef);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]