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; -} - - // ************************************************************************* //