mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: remove masked OTstream::write(token&&) method (#1525)
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user