Skip to content
Snippets Groups Projects
Commit 6a569b4f authored by Tom Fischer's avatar Tom Fischer
Browse files

[NL/DOF] Rm getVector() method to avoid misuse.

parent 0fe82174
No related branches found
No related tags found
No related merge requests found
......@@ -54,9 +54,6 @@ public:
class VectorProvider
{
public:
//! Get an uninitialized vector.
virtual GlobalVector& getVector() = 0;
//! Get an uninitialized vector with the given \c id.
virtual GlobalVector& getVector(std::size_t& id) = 0;
......
......@@ -176,15 +176,6 @@ getVector_(std::size_t& id, Args&&... args)
return get_<do_search>(id, _unused_vectors, _used_vectors, std::forward<Args>(args)...);
}
GlobalVector&
SimpleMatrixVectorProvider::
getVector()
{
std::size_t id = 0u;
return *getVector_<false>(id).first;
}
GlobalVector&
SimpleMatrixVectorProvider::
getVector(std::size_t& id)
......
......@@ -36,7 +36,6 @@ public:
SimpleMatrixVectorProvider(SimpleMatrixVectorProvider const&) = delete;
SimpleMatrixVectorProvider& operator=(SimpleMatrixVectorProvider const&) = delete;
GlobalVector& getVector() override;
GlobalVector& getVector(std::size_t& id) override;
GlobalVector& getVector(GlobalVector const& x) override;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment