[llvm-commits] [llvm] r113075 - /llvm/trunk/utils/unittest/googletest/gtest.cc

Chris Lattner sabre at nondot.org
Sat Sep 4 11:17:16 PDT 2010


Author: lattner
Date: Sat Sep  4 13:17:16 2010
New Revision: 113075

URL: http://llvm.org/viewvc/llvm-project?rev=113075&view=rev
Log:
delete dead code.

Modified:
    llvm/trunk/utils/unittest/googletest/gtest.cc

Modified: llvm/trunk/utils/unittest/googletest/gtest.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/unittest/googletest/gtest.cc?rev=113075&r1=113074&r2=113075&view=diff
==============================================================================
--- llvm/trunk/utils/unittest/googletest/gtest.cc (original)
+++ llvm/trunk/utils/unittest/googletest/gtest.cc Sat Sep  4 13:17:16 2010
@@ -2224,35 +2224,6 @@
   return impl_->result()->increment_death_test_count();
 }
 
-namespace {
-
-// A predicate that checks the test name of a TestInfo against a known
-// value.
-//
-// This is used for implementation of the TestCase class only.  We put
-// it in the anonymous namespace to prevent polluting the outer
-// namespace.
-//
-// TestNameIs is copyable.
-class TestNameIs {
- public:
-  // Constructor.
-  //
-  // TestNameIs has NO default constructor.
-  explicit TestNameIs(const char* name)
-      : name_(name) {}
-
-  // Returns true iff the test name of test_info matches name_.
-  bool operator()(const TestInfo * test_info) const {
-    return test_info && internal::String(test_info->name()).Compare(name_) == 0;
-  }
-
- private:
-  internal::String name_;
-};
-
-}  // namespace
-
 namespace internal {
 
 // This method expands all parameterized tests registered with macros TEST_P





More information about the llvm-commits mailing list