dead code patrol
authorChris Lattner <sabre@nondot.org>
Wed, 1 Sep 2010 16:06:39 +0000 (16:06 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 1 Sep 2010 16:06:39 +0000 (16:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112713 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp

index 19d22475f653262267c423bbff565c7db0a0479b..7e8245a9e3a6b503b8dab8028af3d7cb97b58472 100644 (file)
@@ -97,15 +97,6 @@ public:
     return 0;
   }
 
-  /// erase - Remove the specified type, returning true if it was in the set.
-  bool erase(const Type *Ty) {
-    if (!TheMap.erase(Ty))
-      return false;
-    if (Ty->isAbstract())
-      Ty->removeAbstractTypeUser(this);
-    return true;
-  }
-
   /// insert - This returns true if the pointer was new to the set, false if it
   /// was already in the set.
   bool insert(const Type *Src, const Type *Dst) {