Commit 552bd816 authored by Mike Kremer's avatar Mike Kremer

Removed debug output.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@130 66977474-1d4b-4f09-8fe9-267525286df2
parent ba03d317
......@@ -63,7 +63,6 @@ PropertyPtr<PropT,HandleT>::~PropertyPtr() {
* only one who stores the property.
*/
if(!locked() && !persistent() && ptr::shared_ptr<PropT>::use_count() == 2) {
std::cerr << "Trying to release property " << ptr::shared_ptr<PropT>::get() << std::endl;
resMan_.release_property(HandleT(handle().idx()));
unlock();
}
......
......@@ -172,10 +172,7 @@ void ResourceManager::remove_property(StdVecT& _vec, size_t _idx) {
(*(_vec.begin() + _idx))->lock();
delete *(_vec.begin() + _idx);
std::cerr << "Before erase with idx " << _idx << std::endl;
std::cerr << "Vector still has " << _vec.size() << " elements" << std::endl;
_vec.erase(_vec.begin() + _idx);
std::cerr << "After erase" << std::endl;
size_t n = _vec.size();
for(size_t i = 0; i < n; ++i) {
_vec[i]->set_handle(OpenVolumeMeshHandle(i));
......
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