From: Rico Tzschichholz Date: Sat, 23 Oct 2021 13:27:12 +0000 (+0200) Subject: vala: Replace and drop UnaryExpression.find_member_access() X-Git-Tag: 0.55.1~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca457c1d98b6794376dfef081fcbbb8542f8788e;p=thirdparty%2Fvala.git vala: Replace and drop UnaryExpression.find_member_access() --- 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 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;