Remove IStreamingReporter::isMulti query

This was previously used to avoid `dynamic_cast` inside our code,
when we were creating more than one reporter, or a reporter
together with listeners. However, since then the offending code
was refactored to be smarter instead, and this query member function
is no longer needed nor used.
This commit is contained in:
Martin Hořeňovský 2020-03-09 21:07:15 +01:00
parent 9de6eae6bb
commit 727b26ab35
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
4 changed files with 0 additions and 8 deletions

View File

@ -112,7 +112,6 @@ namespace Catch {
TestRunStats::~TestRunStats() = default;
void IStreamingReporter::fatalErrorEncountered( StringRef ) {}
bool IStreamingReporter::isMulti() const { return false; }
void IStreamingReporter::listReporters(std::vector<ReporterDescription> const& descriptions, Config const& config) {
Catch::cout() << "Available reporters:\n";

View File

@ -241,8 +241,6 @@ namespace Catch {
// Default empty implementation provided
virtual void fatalErrorEncountered( StringRef name );
virtual bool isMulti() const;
// Listing support
virtual void listReporters(std::vector<ReporterDescription> const& descriptions, Config const& config);
virtual void listTests(std::vector<TestCaseHandle> const& tests, Config const& config);

View File

@ -150,10 +150,6 @@ namespace Catch {
m_reporter->skipTest( testInfo );
}
bool ListeningReporter::isMulti() const {
return true;
}
void ListeningReporter::listReporters(std::vector<ReporterDescription> const& descriptions, Config const& config) {
for (auto const& listener : m_listeners) {
listener->listReporters(descriptions, config);

View File

@ -50,7 +50,6 @@ namespace Catch {
void testRunEnded( TestRunStats const& testRunStats ) override;
void skipTest( TestCaseInfo const& testInfo ) override;
bool isMulti() const override;
void listReporters(std::vector<ReporterDescription> const& descriptions, Config const& config) override;
void listTests(std::vector<TestCaseHandle> const& tests, Config const& config) override;