summaryrefslogtreecommitdiff
path: root/vala/valathrowstatement.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2012-08-03 09:52:14 +0200
committerJürg Billeter <j@bitron.ch>2012-08-06 13:24:05 +0200
commitca020bf04a09fe16e5583eea5a3a341e7796bff5 (patch)
tree4ac881e9d36811d0d6673dec7a7b1f97080ed132 /vala/valathrowstatement.vala
parent5ea6dc05d62c71ba4e633f70b86e4dd0a5e9c089 (diff)
downloadvala-ca020bf04a09fe16e5583eea5a3a341e7796bff5.tar.gz
Drop POSIX profile
Diffstat (limited to 'vala/valathrowstatement.vala')
-rw-r--r--vala/valathrowstatement.vala8
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;