From b2b45d0a5e9cece6710cafd2acdfb93cfa6363ce Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 13 Jun 2013 12:40:57 +0100 Subject: [PATCH] ENH: Removed unused source file --- src/OpenFOAM/db/IOstreams/Sstreams/OSstream.H | 3 +- .../db/IOstreams/Sstreams/chkStream.C | 58 ------------------- 2 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 src/OpenFOAM/db/IOstreams/Sstreams/chkStream.C diff --git a/src/OpenFOAM/db/IOstreams/Sstreams/OSstream.H b/src/OpenFOAM/db/IOstreams/Sstreams/OSstream.H index 4e5c991131..8d2ef11dfc 100644 --- a/src/OpenFOAM/db/IOstreams/Sstreams/OSstream.H +++ b/src/OpenFOAM/db/IOstreams/Sstreams/OSstream.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,7 +30,6 @@ Description SourceFiles OSstreamI.H OSstream.C - chkStream.C \*---------------------------------------------------------------------------*/ diff --git a/src/OpenFOAM/db/IOstreams/Sstreams/chkStream.C b/src/OpenFOAM/db/IOstreams/Sstreams/chkStream.C deleted file mode 100644 index 94c4db91ae..0000000000 --- a/src/OpenFOAM/db/IOstreams/Sstreams/chkStream.C +++ /dev/null @@ -1,58 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Description - Checks stream state,ing error. - -\*---------------------------------------------------------------------------*/ - -#include "error.H" -#include "token.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -bool Foam::checkStream(istream& is, const string& fnName) -{ - if (!is.good()) - { - state(is, fnName); - Info<< "Bad object in istream?", fnName << endl; - } - - return good(); -} - - -bool Foam::checkStream(ostream& os, const string& fnName) -{ - if (!os.good()) - { - state(os, fnName); - Info<< "Bad object in ostream?", fnName << endl; - } - - return good(); -} - - -// ************************************************************************* //