Commit 7c70125b authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: remove masked OTstream::write(token&&) method (#1525)

parent bc0b02c6
......@@ -43,18 +43,6 @@ bool Foam::OTstream::write(const token& tok)
}
bool Foam::OTstream::write(token&& tok)
{
if (tok.good())
{
append(std::move(tok));
return true;
}
return false;
}
Foam::Ostream& Foam::OTstream::write(const char c)
{
if (!std::isspace(c) && std::isprint(c))
......
......@@ -49,11 +49,6 @@ SourceFiles
namespace Foam
{
// Typedefs
typedef DynamicList<token> tokenDynList;
/*---------------------------------------------------------------------------*\
Class OTstream Declaration
\*---------------------------------------------------------------------------*/
......@@ -127,11 +122,6 @@ public:
// \return false if the token type was not handled by this method
virtual bool write(const token& tok);
//- Write token to stream or otherwise handle it.
// The stream is permitted to transfer/clear token contents.
// \return false if the token type was not handled by this method
virtual bool write(token&& tok);
//- Write single character. Whitespace is suppressed.
virtual Ostream& write(const char c);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment