[gardening] Remove unneeded implementations of none_of/count_if/count.

These are now provided upstream by LLVM.
This commit is contained in:
Michael Gottesman
2016-12-04 02:53:54 -08:00
parent cd7929e84d
commit 35edd1364a
2 changed files with 3 additions and 28 deletions

View File

@@ -17,6 +17,7 @@
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "gtest/gtest.h"
#include <map>
@@ -254,7 +255,7 @@ bool CtorTesterSet::hasLiveTesters() const {
}
bool CtorTesterSet::numLiveTesters() const {
return count_if(Constructed, [](CtorTester *T) -> bool {
return llvm::count_if(Constructed, [](CtorTester *T) -> bool {
assert(T);
return !T->isIgnorableTester();
});