[vala/wip/attributes: 65/119] Drop Class.type_check_function



commit 721859264fd3845d943b16034e887b484434057d
Author: Luca Bruno <lucabru src gnome org>
Date:   Wed Jun 29 20:48:13 2011 +0200

    Drop Class.type_check_function

 vala/valaclass.vala         |   10 ----------
 vapigen/valagidlparser.vala |    2 +-
 2 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index 8a972b8..8a36b0e 100644
--- a/vala/valaclass.vala
+++ b/vala/valaclass.vala
@@ -70,13 +70,6 @@ public class Vala.Class : ObjectTypeSymbol {
 	}
 
 	/**
-	 * The name of the function to use to check whether a value is an instance of
-	 * this class. If this is null then the default type check function should be 
-	 * used instead.
-	 */
-	public string? type_check_function { get; set; }
-
-	/**
 	 * Specifies whether this class has private fields.
 	 */
 	public bool has_private_fields { get; set; }
@@ -661,9 +654,6 @@ public class Vala.Class : ObjectTypeSymbol {
 		if (a.has_argument ("lower_case_csuffix")) {
 			lower_case_csuffix = a.get_string ("lower_case_csuffix");
 		}
-		if (a.has_argument ("type_check_function")) {
-			type_check_function = a.get_string ("type_check_function");
-		}
 	}
 
 	/**
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 089a48f..3944aee 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -1435,7 +1435,7 @@ public class Vala.GIdlParser : CodeVisitor {
 							return;
 						}
 					} else if (nv[0] == "type_check_function") {
-						cl.type_check_function = eval (nv[1]);
+						cl.set_attribute_string ("CCode", "type_check_function", eval (nv[1]));
 					} else if (nv[0] == "deprecated") {
 						if (eval (nv[1]) == "1") {
 							cl.deprecated = true;



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