From eebac17c1eebf38c4c82692de41ab7a3ee42602b Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sat, 3 Dec 2016 11:44:18 +0000 Subject: [PATCH] tmp: Removed temporary global functions --- src/OpenFOAM/memory/tmp/tmpI.H | 16 ---------------- src/OpenFOAM/memory/tmpNrc/tmpNrcI.H | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/src/OpenFOAM/memory/tmp/tmpI.H b/src/OpenFOAM/memory/tmp/tmpI.H index 70a4dc2b7f..7e5800dcbb 100644 --- a/src/OpenFOAM/memory/tmp/tmpI.H +++ b/src/OpenFOAM/memory/tmp/tmpI.H @@ -384,20 +384,4 @@ inline void Foam::tmp::operator=(const tmp& t) } -//- Return the const reference of the non-const reference argument -template -inline const T& Const(T& t) -{ - return t; -} - - -//- Return the const reference of the non-const rvalue reference argument -template -inline const T& Const(T&& t) -{ - return t; -} - - // ************************************************************************* // diff --git a/src/OpenFOAM/memory/tmpNrc/tmpNrcI.H b/src/OpenFOAM/memory/tmpNrc/tmpNrcI.H index 75f66f44e8..00af03f852 100644 --- a/src/OpenFOAM/memory/tmpNrc/tmpNrcI.H +++ b/src/OpenFOAM/memory/tmpNrc/tmpNrcI.H @@ -301,20 +301,4 @@ inline void Foam::tmpNrc::operator=(const tmpNrc& t) } -//- Return the const reference of the non-const reference argument -template -inline const T& Const(T& t) -{ - return t; -} - - -//- Return the const reference of the non-const rvalue reference argument -template -inline const T& Const(T&& t) -{ - return t; -} - - // ************************************************************************* //