mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 22:05:39 +02:00
Cleanup of unused functions
The cleanup also found out that custom translation for std-derived exceptions test wasn't running properly, and fixed that. We cannot enable the warning globally, because the tests contain some functions that are unused by design -- e.g. when checking stringification priority of StringMaker vs range fallback and so on.
This commit is contained in:
@@ -33,15 +33,6 @@ namespace {
|
||||
double double_pi = 3.1415926535;
|
||||
};
|
||||
|
||||
struct TestDef {
|
||||
TestDef& operator + (const std::string&) {
|
||||
return *this;
|
||||
}
|
||||
TestDef& operator[](const std::string&) {
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
static const char* returnsConstNull() { return nullptr; }
|
||||
static char* returnsNull() { return nullptr; }
|
||||
|
||||
@@ -53,9 +44,6 @@ namespace {
|
||||
// Equality tests
|
||||
TEST_CASE( "Equality checks that should succeed" )
|
||||
{
|
||||
TestDef td;
|
||||
td + "hello" + "hello";
|
||||
|
||||
TestData data;
|
||||
|
||||
REQUIRE( data.int_seven == 7 );
|
||||
|
Reference in New Issue
Block a user