mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 03:43:28 +01:00
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:
parent
13670f535f
commit
3e9c6fec22
@ -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;
|
||||
|
@ -129,8 +129,6 @@ namespace Catch {
|
||||
|
||||
void writeStylesheetRef( StringRef url );
|
||||
|
||||
XmlWriter& writeBlankLine();
|
||||
|
||||
void ensureTagClosed();
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user