aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-08 02:58:37 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-08 02:58:37 +0000
commit1ddcf35b68a4c326c548272134611ce54b1afd25 (patch)
tree5c79b73f645fbb8507ff0e2b94a4ff2018213836 /include
parent6fec233a1e4b26be2f69e02884d4f3c2a2c4a437 (diff)
downloadexternal_llvm-1ddcf35b68a4c326c548272134611ce54b1afd25.zip
external_llvm-1ddcf35b68a4c326c548272134611ce54b1afd25.tar.gz
external_llvm-1ddcf35b68a4c326c548272134611ce54b1afd25.tar.bz2
Revert r97917, which was causing Clang Debug self-host failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/STLExtras.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h
index 8dbf790..32cf459 100644
--- a/include/llvm/ADT/STLExtras.h
+++ b/include/llvm/ADT/STLExtras.h
@@ -279,28 +279,6 @@ static inline void array_pod_sort(IteratorTy Start, IteratorTy End,
qsort(&*Start, End-Start, sizeof(*Start), Compare);
}
-//===----------------------------------------------------------------------===//
-// Extra additions to <algorithm>
-//===----------------------------------------------------------------------===//
-
-/// For a container of pointers, deletes the pointers and then clears the
-/// container.
-template<typename Container>
-void DeleteContainerPointers(Container &C) {
- for (typename Container::iterator I = C.begin(), E = C.end(); I != E; ++I)
- delete *I;
- C.clear();
-}
-
-/// In a container of pairs (usually a map) whose second element is a pointer,
-/// deletes the second elements and then clears the container.
-template<typename Container>
-void DeleteContainerSeconds(Container &C) {
- for (typename Container::iterator I = C.begin(), E = C.end(); I != E; ++I)
- delete I->second;
- C.clear();
-}
-
} // End llvm namespace
#endif