From 1327c5ab990c76bb4f02e5e12434580ce108123e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 6 Mar 2005 05:46:00 +0000 Subject: [PATCH] Delete the really inefficient method: void remove(const Type* Typ); Get rid of removeEntry(type_iterator), since 'remove' is exactly the same operation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20480 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/SymbolTable.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/include/llvm/SymbolTable.h b/include/llvm/SymbolTable.h index 1576c979161..7aaadaaa77f 100644 --- a/include/llvm/SymbolTable.h +++ b/include/llvm/SymbolTable.h @@ -156,18 +156,9 @@ public: /// @brief Remove a named value from the symbol table. void remove(Value* Val); - /// This method removes a named type from the symbol table. The - /// name of the type is extracted from \p T and used to look up - /// the Type in the type map. If the Type is not in the symbol - /// table, this method silently ignores the request. - /// @brief Remove a named type from the symbol table. - void remove(const Type* Typ); - /// Remove a type at the specified position in the symbol table. /// @returns the removed Type. - inline Type* remove(type_iterator TI) { - return removeEntry(TI); - } + Type* remove(type_iterator TI); /// changeName - Given a value with a non-empty name, remove its existing /// entry from the symbol table and insert a new one for Name. This is @@ -292,10 +283,6 @@ private: /// @returns the removed Value. Value* removeEntry(plane_iterator Plane, value_iterator Entry); - /// Remove a specific type from the SymbolTable. - /// @returns the removed Type. - Type* removeEntry(type_iterator Entry); - /// This function is called when one of the types in the type plane /// is refined. virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy);