Remove Config::openStream function

It has become completely vestigial, as it only ever passed-through
the argument down to a different function, and being private
member function, it didn't even introduce a useful compilation
firewall.
This commit is contained in:
Martin Hořeňovský 2022-04-07 12:45:05 +02:00
parent 46b3f7ee5f
commit 4b78157981
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
2 changed files with 2 additions and 7 deletions

View File

@ -79,10 +79,10 @@ namespace Catch {
defaultOutputUsed = true;
m_reporterStreams.push_back(
openStream( data.defaultOutputFilename ) );
makeStream( data.defaultOutputFilename ) );
} else {
m_reporterStreams.push_back(
openStream( *reporterSpec.outputFile() ) );
makeStream( *reporterSpec.outputFile() ) );
}
}
}
@ -139,8 +139,4 @@ namespace Catch {
unsigned int Config::benchmarkResamples() const { return m_data.benchmarkResamples; }
std::chrono::milliseconds Config::benchmarkWarmupTime() const { return std::chrono::milliseconds(m_data.benchmarkWarmupTime); }
Detail::unique_ptr<IStream const> Config::openStream(std::string const& outputFileName) {
return Catch::makeStream(outputFileName);
}
} // end namespace Catch

View File

@ -116,7 +116,6 @@ namespace Catch {
std::chrono::milliseconds benchmarkWarmupTime() const override;
private:
Detail::unique_ptr<IStream const> openStream(std::string const& outputFileName);
ConfigData m_data;
std::vector<Detail::unique_ptr<IStream const>> m_reporterStreams;