[llvm-commits] CVS: llvm/include/llvm/ADT/StringMap.h
Chris Lattner
sabre at nondot.org
Sun Feb 11 00:22:42 PST 2007
Changes in directory llvm/include/llvm/ADT:
StringMap.h updated: 1.7 -> 1.8
---
Log message:
remove support for stringmap visitors now that iterators exist.
---
Diffs of the changes: (+0 -10)
StringMap.h | 10 ----------
1 files changed, 10 deletions(-)
Index: llvm/include/llvm/ADT/StringMap.h
diff -u llvm/include/llvm/ADT/StringMap.h:1.7 llvm/include/llvm/ADT/StringMap.h:1.8
--- llvm/include/llvm/ADT/StringMap.h:1.7 Sun Feb 11 02:12:13 2007
+++ llvm/include/llvm/ADT/StringMap.h Sun Feb 11 02:22:15 2007
@@ -33,14 +33,6 @@
unsigned getKeyLength() const { return StrLen; }
};
-/// StringMapVisitor - Subclasses of this class may be implemented to walk all
-/// of the items in a StringMap.
-class StringMapVisitor {
-public:
- virtual ~StringMapVisitor();
- virtual void Visit(const char *Key, StringMapEntryBase *Value) const = 0;
-};
-
/// StringMapImpl - This is the base class of StringMap that is shared among
/// all of its instantiations.
class StringMapImpl {
@@ -82,8 +74,6 @@
bool empty() const { return NumItems == 0; }
unsigned size() const { return NumItems; }
-
- void VisitEntries(const StringMapVisitor &Visitor) const;
};
/// StringMapEntry - This is used to represent one value that is inserted into
More information about the llvm-commits
mailing list