Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/UsageTests/Condition.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-05-02 12:13:29 +0200
committerMartin Hořeňovský2022-05-02 21:32:24 +0200
commit198713e5dc2c1adc8f28bdd43c9e66a679cf8d8d (patch)
tree2d5ef098b8532f88f3134d0072bca86d6d1a3480 /tests/SelfTest/UsageTests/Condition.tests.cpp
parentb84067ea6f566fdfecadcef4b2c938698e1c21cc (diff)
downloadcatch3-198713e5dc2c1adc8f28bdd43c9e66a679cf8d8d.tar.gz
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.
Diffstat (limited to 'tests/SelfTest/UsageTests/Condition.tests.cpp')
-rw-r--r--tests/SelfTest/UsageTests/Condition.tests.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/SelfTest/UsageTests/Condition.tests.cpp b/tests/SelfTest/UsageTests/Condition.tests.cpp
index 198b4cdb..2e3b624e 100644
--- a/tests/SelfTest/UsageTests/Condition.tests.cpp
+++ b/tests/SelfTest/UsageTests/Condition.tests.cpp
@@ -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 );