[vala/wip/attributes: 64/100] Drop TypeSymbol.param_spec_function



commit 3edc6aefc6dc2572368e2d94c716d17e8892e71d
Author: Luca Bruno <lucabru src gnome org>
Date:   Wed Jun 29 20:44:57 2011 +0200

    Drop TypeSymbol.param_spec_function

 vala/valaclass.vala     |   25 -------------------------
 vala/valainterface.vala |   19 -------------------
 2 files changed, 0 insertions(+), 44 deletions(-)
---
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index c462f7c..8a972b8 100644
--- a/vala/valaclass.vala
+++ b/vala/valaclass.vala
@@ -94,7 +94,6 @@ public class Vala.Class : ObjectTypeSymbol {
 	private string ref_function;
 	private string unref_function;
 	private string ref_sink_function;
-	private string param_spec_function;
 	private bool _is_compact;
 	private bool _is_immutable;
 
@@ -665,10 +664,6 @@ public class Vala.Class : ObjectTypeSymbol {
 		if (a.has_argument ("type_check_function")) {
 			type_check_function = a.get_string ("type_check_function");
 		}
-
-		if (a.has_argument ("param_spec_function")) {
-			param_spec_function = a.get_string ("param_spec_function");
-		}
 	}
 
 	/**
@@ -712,26 +707,6 @@ public class Vala.Class : ObjectTypeSymbol {
 		this.type_id = type_id;
 	}
 
-	public override string? get_param_spec_function () {
-		if (param_spec_function == null) {
-			param_spec_function = get_default_param_spec_function ();
-		}
-
-		return param_spec_function;
-	}
-
-	public string? get_default_param_spec_function () {
-		if (is_fundamental ()) {
-			return get_lower_case_cname ("param_spec_");
-		} else if (base_class != null) {
-			return base_class.get_param_spec_function ();
-		} else if (get_type_id () == "G_TYPE_POINTER") {
-			return "g_param_spec_pointer";
-		} else {
-			return "g_param_spec_boxed";
-		}
-	}
-
 	public override bool is_reference_counting () {
 		return get_ref_function () != null;
 	}
diff --git a/vala/valainterface.vala b/vala/valainterface.vala
index 9bbb1c1..f9ce4b9 100644
--- a/vala/valainterface.vala
+++ b/vala/valainterface.vala
@@ -536,25 +536,6 @@ public class Vala.Interface : ObjectTypeSymbol {
 		}
 	}
 
-	public override string? get_param_spec_function () {
-		foreach (DataType prerequisite in prerequisites) {
-			var prereq = prerequisite as ObjectType;
-			var cl = prereq.type_symbol as Class;
-			if (cl != null) {
-				return cl.get_param_spec_function ();
-			}
-			var interf = prereq.type_symbol as Interface;
-			if (interf != null) {
-				var param_spec_function = interf.get_param_spec_function ();
-				if (param_spec_function != null) {
-					return param_spec_function;
-				}
-			}
-		}
-
-		return "g_param_spec_pointer";
-	}
-
 	public override bool check (CodeContext context) {
 		if (checked) {
 			return !error;



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