diff options
author | Jürg Billeter <j@bitron.ch> | 2012-08-03 09:52:14 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2012-08-06 13:24:05 +0200 |
commit | ca020bf04a09fe16e5583eea5a3a341e7796bff5 (patch) | |
tree | 4ac881e9d36811d0d6673dec7a7b1f97080ed132 /vala/valathrowstatement.vala | |
parent | 5ea6dc05d62c71ba4e633f70b86e4dd0a5e9c089 (diff) | |
download | vala-ca020bf04a09fe16e5583eea5a3a341e7796bff5.tar.gz |
Drop POSIX profile
Diffstat (limited to 'vala/valathrowstatement.vala')
-rw-r--r-- | vala/valathrowstatement.vala | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vala/valathrowstatement.vala b/vala/valathrowstatement.vala index 2dbcc3de6..0c30d3357 100644 --- a/vala/valathrowstatement.vala +++ b/vala/valathrowstatement.vala @@ -79,11 +79,7 @@ public class Vala.ThrowStatement : CodeNode, Statement { checked = true; - if (context.profile == Profile.GOBJECT) { - error_expression.target_type = new ErrorType (null, null, source_reference); - } else { - error_expression.target_type = context.analyzer.error_type.copy (); - } + error_expression.target_type = new ErrorType (null, null, source_reference); error_expression.target_type.value_owned = true; if (error_expression != null) { @@ -98,7 +94,7 @@ public class Vala.ThrowStatement : CodeNode, Statement { return false; } - if (context.profile == Profile.GOBJECT && !(error_expression.value_type is ErrorType)) { + if (!(error_expression.value_type is ErrorType)) { Report.error (error_expression.source_reference, "`%s' is not an error type".printf (error_expression.value_type.to_string ())); error = true; return false; |