diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-23 15:27:12 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-24 12:15:03 +0200 |
commit | 034a2954eab699988b94a8e248beb1a9a7e154cb (patch) | |
tree | 56f08561a48e02b4976490765d7da80b0fe2c50e | |
parent | 8546f455877815f1829c5ec9b020ee38d1aaa2cf (diff) | |
download | vala-034a2954eab699988b94a8e248beb1a9a7e154cb.tar.gz |
vala: Replace and drop UnaryExpression.find_member_access()
-rw-r--r-- | vala/valaunaryexpression.vala | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/vala/valaunaryexpression.vala b/vala/valaunaryexpression.vala index 80bee5540..a725456fa 100644 --- a/vala/valaunaryexpression.vala +++ b/vala/valaunaryexpression.vala @@ -128,14 +128,6 @@ public class Vala.UnaryExpression : Expression { return st.is_integer_type (); } - MemberAccess? find_member_access (Expression expr) { - if (expr is MemberAccess) { - return (MemberAccess) expr; - } - - return null; - } - public override void get_error_types (Collection<DataType> collection, SourceReference? source_reference = null) { inner.get_error_types (collection, source_reference); } @@ -211,8 +203,7 @@ public class Vala.UnaryExpression : Expression { return false; } - var ma = find_member_access (inner); - if (ma == null) { + if (!(inner is MemberAccess)) { error = true; Report.error (source_reference, "Prefix operators not supported for this expression"); return false; |