]> 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>
Wed, 11 Nov 2020 18:13:15 +0000 (19:13 +0100)
vapigen/valagidlparser.vala

index 9355a8516982b5a4ebfccb492bb76dbceccf1526..3ffa0c53b99d94ba92d155a8f1c07f702d0e9b37 100644 (file)
@@ -473,7 +473,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);