From ef23735d9b298239c6dd64360edef1d746ed71cd Mon Sep 17 00:00:00 2001 From: triton Date: Sun, 20 Jan 2013 13:52:10 +0000 Subject: [PATCH] Removed some dead code from Parser.cpp. --- src/Parser/Parser.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp index d5741ce5..21a002a5 100644 --- a/src/Parser/Parser.cpp +++ b/src/Parser/Parser.cpp @@ -628,21 +628,6 @@ Cxxi::Type^ Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto TT = Type->getAs(); TypedefNameDecl* TD = TT->getDecl(); -#if 0 - auto NS = GetNamespace(TD); - auto TDD = NS->FindTypedef(marshalString(GetDeclName(TD))); - - // If we did not find an existing typedef declaration, this is a type - // used by the standard library, so we walk the decl to process it. - if (!TDD) - { - auto TTL = TD->getTypeSourceInfo()->getTypeLoc(); - TDD = (Cxxi::TypedefDecl^) WalkDeclaration(TD, &TTL, - /*IgnoreSystemDecls=*/false); - assert(TDD != nullptr); - } -#endif - auto TTL = TD->getTypeSourceInfo()->getTypeLoc(); auto TDD = safe_cast(WalkDeclaration(TD, &TTL, /*IgnoreSystemDecls=*/false)); @@ -743,9 +728,6 @@ Cxxi::Type^ Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, clang::TypeLoc::TypeLocClass Class = TL->getTypeLocClass(); int Loc = (int) Class; - //if (Class != clang::TypeLoc::TemplateSpecialization) - // return TST; - auto TSTL = dyn_cast(TL); for (unsigned I = 0, E = TS->getNumArgs(); I != E; ++I) @@ -1306,7 +1288,6 @@ Cxxi::Declaration^ Parser::WalkDeclaration(clang::Decl* D, default: { Debug("Unhandled declaration kind: %s\n", D->getDeclKindName()); - //assert(0 && "Unhandled declaration kind"); break; } };