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:
Martin Hořeňovský
2022-05-02 12:13:29 +02:00
parent b84067ea6f
commit 198713e5dc
4 changed files with 7 additions and 22 deletions

View File

@@ -88,7 +88,6 @@ namespace Catch {
class NoColourImpl : public ColourImpl {
public:
NoColourImpl( IStream* stream ): ColourImpl( stream ) {}
static bool useColourOnPlatform() { return true; }
private:
void use( Colour::Code ) const override {}

View File

@@ -108,11 +108,6 @@ namespace Catch {
}
private:
void printSourceInfo() const {
stream << colourImpl->guardColour( tapDimColour )
<< result.getSourceInfo() << ':';
}
void printResultType(StringRef passOrFail) const {
if (!passOrFail.empty()) {
stream << passOrFail << ' ' << counter << " -";