diff --git a/include/caosdb/entity.h b/include/caosdb/entity.h index e3c0d40a19f66bf6d497f6eee074955c7a83b741..1d5307bddcd1a64db578fc8385ea281057422822 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);