From 5cf3521883ce1d636cafcd854e80d14626ce4e69 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 22 Feb 2005 23:36:37 +0000 Subject: [PATCH] remove some more dead templates and a dead macro. llvm-svn: 20279 --- llvm/include/llvm/ADT/STLExtras.h | 33 ------------------------------- 1 file changed, 33 deletions(-) diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h index e13f9f9ce7ab..a58da0febd37 100644 --- a/llvm/include/llvm/ADT/STLExtras.h +++ b/llvm/include/llvm/ADT/STLExtras.h @@ -27,39 +27,6 @@ namespace llvm { // Extra additions to //===----------------------------------------------------------------------===// -// bind_obj - Often times you want to apply the member function of an object -// as a unary functor. This macro is shorthand that makes it happen less -// verbosely. -// -// Example: -// struct Summer { void accumulate(int x); } -// vector Numbers; -// Summer MyS; -// for_each(Numbers.begin(), Numbers.end(), -// bind_obj(&MyS, &Summer::accumulate)); -// -// TODO: When I get lots of extra time, convert this from an evil macro -// -#define bind_obj(OBJ, METHOD) std::bind1st(std::mem_fun(METHOD), OBJ) - - -// bitwise_or - This is a simple functor that applys operator| on its two -// arguments to get a boolean result. -// -template -struct bitwise_or : public std::binary_function { - bool operator()(const Ty& left, const Ty& right) const { - return left | right; - } -}; - -template -struct less_ptr : public std::binary_function { - bool operator()(const Ty* left, const Ty* right) const { - return *left < *right; - } -}; - template struct greater_ptr : public std::binary_function { bool operator()(const Ty* left, const Ty* right) const {