Skip to content
Snippets Groups Projects
Commit 119613f6 authored by Markus Blatt's avatar Markus Blatt
Browse files

These removed assertions introduced with patch 5731 are either wrong or unnecessary:

1. There might have a previous erasion and therefore use_count is zero.
2. list_->chunks_[i] is a smartpointer and therefore always true

[[Imported from SVN: r6032]]
parent 6e3d9cbf
No related branches found
No related tags found
No related merge requests found
......@@ -709,7 +709,6 @@ namespace Dune
// Deallocate memory not needed any more.
for(size_t chunk=0; chunk<chunks; chunk++) {
--posChunkStart;
assert(list_->chunks_[posChunkStart] && list_->chunks_[posChunkStart].use_count()==1);
list_->chunks_[posChunkStart].reset();
}
......
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