Commit 03c27d2b authored by Mark Olesen's avatar Mark Olesen
Browse files

eliminated label& List::size() completely

parent 8207cf0e
......@@ -152,9 +152,6 @@ public:
//- Return the number of elements in the UList.
inline label size() const;
//- Override size to be inconsistent with allocated storage.
// Use with care.
inline label& size();
// Edit
......
......@@ -65,14 +65,6 @@ inline Foam::label Foam::List<T>::size() const
return UList<T>::size_;
}
template<class T>
inline Foam::label& Foam::List<T>::size()
{
return UList<T>::size_;
}
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class T>
......
......@@ -167,7 +167,7 @@ const labelList& primitiveMesh::pointCells
}
}
storage.size() = n;
storage.setSize(n);
return storage;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment