]> granicus.if.org Git - clang/commitdiff
Kill off the last Destroy method in the AST library
authorDouglas Gregor <dgregor@apple.com>
Sun, 25 Jul 2010 18:23:53 +0000 (18:23 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 25 Jul 2010 18:23:53 +0000 (18:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109378 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/NestedNameSpecifier.h
lib/AST/NestedNameSpecifier.cpp
lib/Sema/SemaTemplateInstantiate.cpp

index 1594b090fea5d10a0798e140cc24cb132e525843..3b25f3bb403ffa3160460e178a217cd19f516b6a 100644 (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);
index d6594cdfd02f8fc6c89da642d1c516f6a5fccc28..212def8565ea715e84a1efdfe6865f3a04e31799 100644 (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));
 }
index da99c7e8c2c9b542193735bc1a84c1950fd1360d..1a7e35b35507dff36f38737988c3fd1d657dd5d8 100644 (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;
 }