From e4b7a5c5bd92443780420a643573afbb1ec696ea Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Thu, 12 Aug 2021 10:13:07 +0200 Subject: [PATCH] MAINT: Remove commented code --- include/caosdb/entity.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/include/caosdb/entity.h b/include/caosdb/entity.h index e3c0d40..1d5307b 100644 --- a/include/caosdb/entity.h +++ b/include/caosdb/entity.h @@ -133,26 +133,6 @@ protected: // shift all indices in the cache above index (such that the values do not // get deleted/copied because this could destroy pointers (c-interface). - // auto next = cache.begin(); - // while(next != cache.end()) { - // auto cached = *next; - // if(cached.first > index) { - // std::make_pair<int, T>(cached.first-1, - //} - // cached.first - // next = std::next(next); - //} - // for(auto &cached : cache) { - // if(cached.first > index) { - // cached.first--; - //} - //} - // for(int i = index + 1; i < Size(); i++) { - // if(cache.count(i)>0) { - - // cache.at(i).wrapped = &(this->wrapped->at(i)); - //} - //} for (int i = index + 1; i < Size(); i++) { if (cache.count(i) > 0) { auto handle = cache.extract(i); -- GitLab