]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapigen: Avoid superfluous cast
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 11 Nov 2020 16:04:32 +0000 (17:04 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 3 Jan 2021 12:11:59 +0000 (13:11 +0100)
vapigen/valagidlparser.vala

index 3b4506f76f5c471c9e4d14633002b0a79f9d83dd..7526922e4b10458a7ab5cc13b01ea1d7c1d8e7ec 100644 (file)
@@ -463,7 +463,7 @@ public class Vala.GIdlParser : CodeVisitor {
                Symbol? cc = null;
 
                foreach ( unowned string tok in path ) {
-                       cc = cp.scope.lookup (tok) as Symbol;
+                       cc = cp.scope.lookup (tok);
                        if ( cc == null ) {
                                cc = new Namespace (tok, current_source_reference);
                                add_symbol_to_container (cp, cc);