Kill off the last Destroy method in the AST library

llvm-svn: 109378
This commit is contained in:
Douglas Gregor 2010-07-25 18:23:53 +00:00
parent b412e174db
commit a9b2dbc1a4
3 changed files with 0 additions and 13 deletions

View File

@ -181,8 +181,6 @@ public:
ID.AddPointer(Specifier);
}
void Destroy(ASTContext &Context);
/// \brief Dump the nested name specifier to standard output to aid
/// in debugging.
void dump(const LangOptions &LO);

View File

@ -176,11 +176,6 @@ NestedNameSpecifier::print(llvm::raw_ostream &OS,
OS << "::";
}
void NestedNameSpecifier::Destroy(ASTContext &Context) {
this->~NestedNameSpecifier();
Context.Deallocate((void *)this);
}
void NestedNameSpecifier::dump(const LangOptions &LO) {
print(llvm::errs(), PrintingPolicy(LO));
}

View File

@ -1417,12 +1417,6 @@ Sema::InstantiateClassTemplateSpecialization(
TSK,
Complain);
for (unsigned I = 0, N = Matched.size(); I != N; ++I) {
// FIXME: Implement TemplateArgumentList::Destroy!
// if (Matched[I].first != Pattern)
// Matched[I].second->Destroy(Context);
}
return Result;
}