Skip to content

Commit

Permalink
removed copy constructor for kvRange
Browse files Browse the repository at this point in the history
  • Loading branch information
ikod committed Aug 23, 2020
1 parent 802cf09 commit 89c9b9d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions source/ikod/containers/hashmap.d
Original file line number Diff line number Diff line change
Expand Up @@ -771,17 +771,6 @@ struct HashMap(K, V, Allocator = Mallocator, bool GCRangesAllowed = true) {
int _pos;
size_t _buckets_num;
BucketStorage _buckets;
this(this) {
if (_buckets_num) {
auto _new_buckets = BucketStorage(_buckets_num);
copy(_buckets.bs, _new_buckets.bs);
_buckets = _new_buckets;
_pos = 0;
while (_pos < _buckets_num && _buckets.bs[_pos].hash < ALLOCATED_HASH) {
_pos++;
}
}
}

~this() {
_buckets = BucketStorage.init;
Expand Down

0 comments on commit 89c9b9d

Please sign in to comment.