summaryrefslogtreecommitdiff
path: root/vala/valapointertype.vala
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2011-07-06 09:56:18 +0200
committerLuca Bruno <lucabru@src.gnome.org>2011-08-01 19:09:01 +0200
commitfec66bf087618263c57cdc34eb92aef6a79b86b6 (patch)
tree5b244b13f5f8708303ef0e63cb5b131a21998d18 /vala/valapointertype.vala
parent21fa2ed25337b21f7108a65f8942d27bd3335372 (diff)
downloadvala-fec66bf087618263c57cdc34eb92aef6a79b86b6.tar.gz
Drop C specific methods from the code tree
Diffstat (limited to 'vala/valapointertype.vala')
-rw-r--r--vala/valapointertype.vala14
1 files changed, 1 insertions, 13 deletions
diff --git a/vala/valapointertype.vala b/vala/valapointertype.vala
index 92345874a..40016c342 100644
--- a/vala/valapointertype.vala
+++ b/vala/valapointertype.vala
@@ -49,14 +49,6 @@ public class Vala.PointerType : DataType {
return base_type.to_qualified_string (scope) + "*";
}
- public override string? get_cname () {
- if (base_type.data_type != null && base_type.data_type.is_reference_type ()) {
- return base_type.get_cname ();
- } else {
- return base_type.get_cname () + "*";
- }
- }
-
public override DataType copy () {
return new PointerType (base_type.copy ());
}
@@ -91,7 +83,7 @@ public class Vala.PointerType : DataType {
return base_type.compatible (target_type);
}
- if (target_type.get_type_id () == "G_TYPE_VALUE") {
+ if (CodeContext.get ().profile == Profile.GOBJECT && target_type.data_type != null && target_type.data_type.is_subtype_of (CodeContext.get ().analyzer.gvalue_type.data_type)) {
// allow implicit conversion to GValue
return true;
}
@@ -127,10 +119,6 @@ public class Vala.PointerType : DataType {
return base_type.is_accessible (sym);
}
- public override string? get_type_id () {
- return "G_TYPE_POINTER";
- }
-
public override void accept_children (CodeVisitor visitor) {
base_type.accept (visitor);
}