summaryrefslogtreecommitdiff
path: root/vala/valaexpressionstatement.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-08-09 22:50:48 +0200
committerJürg Billeter <j@bitron.ch>2010-08-09 22:53:35 +0200
commit92cb97f4f806fb6362834bf218e8021453c22f07 (patch)
tree086416603e18bc58628f65001ba5f347261a48ab /vala/valaexpressionstatement.vala
parenta8b589629366b33db7b8cb6c26266ba2c2a042af (diff)
downloadvala-92cb97f4f806fb6362834bf218e8021453c22f07.tar.gz
Drop deprecated support for assigning to construct-only properties
Diffstat (limited to 'vala/valaexpressionstatement.vala')
-rw-r--r--vala/valaexpressionstatement.vala22
1 files changed, 1 insertions, 21 deletions
diff --git a/vala/valaexpressionstatement.vala b/vala/valaexpressionstatement.vala
index 75f6bab1a..50d0debc9 100644
--- a/vala/valaexpressionstatement.vala
+++ b/vala/valaexpressionstatement.vala
@@ -1,6 +1,6 @@
/* valaexpressionstatement.vala
*
- * Copyright (C) 2006-2008 Jürg Billeter
+ * Copyright (C) 2006-2010 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -67,26 +67,6 @@ public class Vala.ExpressionStatement : CodeNode, Statement {
}
}
- /**
- * Returns the property this statement sets, if any.
- *
- * @return the property this statement sets, or null if it doesn't set
- * a property
- */
- public Property? assigned_property () {
- if (expression is Assignment) {
- var assign = (Assignment) expression;
- if (assign.left is MemberAccess) {
- var ma = (MemberAccess) assign.left;
- if (ma.symbol_reference is Property) {
- return (Property) ma.symbol_reference;
- }
- }
- }
-
- return null;
- }
-
public override bool check (SemanticAnalyzer analyzer) {
if (checked) {
return !error;