nuke some dead methods.
authorChris Lattner <sabre@nondot.org>
Sun, 6 Mar 2005 02:25:02 +0000 (02:25 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 6 Mar 2005 02:25:02 +0000 (02:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20470 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/SymbolTable.h

index 7df189896ee2230644a2b3a6f7183bb4c6ac982e..c478a2d8990bc375795ced43d8c127771be11d0b 100644 (file)
@@ -159,16 +159,6 @@ public:
     insertEntry(Val->getName(), Val->getType(), Val);
   }
 
-  /// Inserts a constant into the symbol table with the specified
-  /// name. There can be a many to one mapping between names and constants.
-  /// @brief Insert a constant or type.
-  inline void insert(const std::string &Name, Value *Val) {
-    assert(Val && "Can't insert null type into symbol table!");
-    assert(isa<Constant>(Val) &&
-           "Can only insert constants into a symbol table!");
-    insertEntry(Name, Val->getType(), Val);
-  }
-
   /// Inserts a type into the symbol table with the specified name. There
   /// can be a many-to-one mapping between names and types. This method
   /// allows a type with an existing entry in the symbol table to get
@@ -194,16 +184,6 @@ public:
   /// @brief Remove a named type from the symbol table.
   void remove(const Type* Typ);
 
-  /// Remove a constant or type with the specified name from the 
-  /// symbol table.
-  /// @returns the removed Value.
-  /// @brief Remove a constant or type from the symbol table.
-  inline Value* remove(const std::string &Name, Value *Val) {
-    assert(Val && "Can't remove null value from symbol table!");
-    plane_iterator PI = pmap.find(Val->getType());
-    return removeEntry(PI, PI->second.find(Name));
-  }
-
   /// Remove a type at the specified position in the symbol table.
   /// @returns the removed Type.
   inline Type* remove(type_iterator TI) {