diff --git a/include/internal/catch_test_case_info.cpp b/include/internal/catch_test_case_info.cpp index a2069051..b610d7a4 100644 --- a/include/internal/catch_test_case_info.cpp +++ b/include/internal/catch_test_case_info.cpp @@ -158,12 +158,6 @@ namespace Catch { TestCase::TestCase( ITestInvoker* testCase, TestCaseInfo&& info ) : TestCaseInfo( std::move(info) ), test( testCase ) {} - TestCase TestCase::withName( std::string const& _newName ) const { - TestCase other( *this ); - other.name = _newName; - return other; - } - void TestCase::invoke() const { test->invoke(); } diff --git a/include/internal/catch_test_case_info.h b/include/internal/catch_test_case_info.h index 1ade26fc..b78cde22 100644 --- a/include/internal/catch_test_case_info.h +++ b/include/internal/catch_test_case_info.h @@ -62,8 +62,6 @@ namespace Catch { TestCase( ITestInvoker* testCase, TestCaseInfo&& info ); - TestCase withName( std::string const& _newName ) const; - void invoke() const; TestCaseInfo const& getTestCaseInfo() const;