STYLE: remove deprecated non-const tmp() operator (deprecated since FEB-2016)

This commit is contained in:
Mark Olesen
2017-11-22 18:10:25 +01:00
parent f2ba618c19
commit e96cbd9050
2 changed files with 0 additions and 27 deletions

View File

@ -140,12 +140,6 @@ public:
// Member operators
#ifdef NON_CONST_TMP
//- Deprecated non-const dereference operator.
// Use ref() where non-const access is required
inline T& operator()();
#endif
//- Const dereference operator
inline const T& operator()() const;

View File

@ -247,27 +247,6 @@ inline void Foam::tmp<T>::clear() const
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
#ifdef NON_CONST_TMP
template<class T>
inline T& Foam::tmp<T>::operator()()
{
if (isTmp())
{
if (!ptr_)
{
FatalErrorInFunction
<< typeName() << " deallocated"
<< abort(FatalError);
}
}
// Const-ness is automatically cast-away which is why this operator is
// deprecated. Use ref() where non-const access is required.
return *ptr_;
}
#endif
template<class T>
inline const T& Foam::tmp<T>::operator()() const
{