Remove XmlWriter::writeBlankLine

There is no good reason to provide a "add empty line" primitive
for writing XML documents, and the fact that it remains unused
after all the time it was provided only confirms this further.
This commit is contained in:
Martin Hořeňovský
2021-10-02 11:45:19 +02:00
parent 13670f535f
commit 3e9c6fec22
2 changed files with 0 additions and 8 deletions

View File

@ -322,12 +322,6 @@ namespace {
m_os << R"(<?xml-stylesheet type="text/xsl" href=")" << url << R"("?>)" << '\n';
}
XmlWriter& XmlWriter::writeBlankLine() {
ensureTagClosed();
m_os << '\n';
return *this;
}
void XmlWriter::ensureTagClosed() {
if( m_tagIsOpen ) {
m_os << '>' << std::flush;

View File

@ -129,8 +129,6 @@ namespace Catch {
void writeStylesheetRef( StringRef url );
XmlWriter& writeBlankLine();
void ensureTagClosed();
private: