Commit 0f806c42 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

remove obsolete code

2008-05-30  Jürg Billeter  <j@bitron.ch>

	* vala/valadatatype.vala: remove obsolete code

svn path=/trunk/; revision=1501
parent cddce604
2008-05-30 Jürg Billeter <j@bitron.ch>
* vala/valadatatype.vala: remove obsolete code
2008-05-30 Jürg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: fix g_value_copy and g_value_transform
......
......@@ -301,18 +301,12 @@ public abstract class Vala.DataType : CodeNode {
return ((DelegateType) target_type).delegate_symbol == ((DelegateType) this).delegate_symbol;
}
/* only null is compatible to null */
if (!(target_type is PointerType) && target_type.data_type == null && target_type.type_parameter == null) {
return (data_type == null && type_parameter == null);
}
if (target_type is PointerType || (target_type.data_type != null && target_type.data_type.get_attribute ("PointerType") != null)) {
if (target_type is PointerType) {
/* any reference or array type or pointer type can be cast to a generic pointer */
if (type_parameter != null ||
(data_type != null && (
data_type.is_reference_type () ||
this is DelegateType ||
data_type.get_attribute ("PointerType") != null))) {
this is DelegateType))) {
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment