diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-04 18:17:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-04 18:17:16 +0000 |
commit | d3ba94ce59b7896432616c5e7a8421f1dddf9bd3 (patch) | |
tree | 2ebe0c8c7b619f7abf85088686cbfcaf400dd6ad /utils/unittest | |
parent | 17aa68055beed6faa48ca3a995c5b6fdf5092fd4 (diff) | |
download | external_llvm-d3ba94ce59b7896432616c5e7a8421f1dddf9bd3.zip external_llvm-d3ba94ce59b7896432616c5e7a8421f1dddf9bd3.tar.gz external_llvm-d3ba94ce59b7896432616c5e7a8421f1dddf9bd3.tar.bz2 |
delete dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/unittest')
-rw-r--r-- | utils/unittest/googletest/gtest.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/utils/unittest/googletest/gtest.cc b/utils/unittest/googletest/gtest.cc index aa2d5bb..6e291ae 100644 --- a/utils/unittest/googletest/gtest.cc +++ b/utils/unittest/googletest/gtest.cc @@ -2224,35 +2224,6 @@ int TestInfo::increment_death_test_count() { 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 |