From 89c9b9d966814c04eb5b48985b4f3dccbcbf6683 Mon Sep 17 00:00:00 2001 From: Igor Khasilev Date: Sun, 23 Aug 2020 23:43:22 +0300 Subject: [PATCH] removed copy constructor for kvRange --- source/ikod/containers/hashmap.d | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/source/ikod/containers/hashmap.d b/source/ikod/containers/hashmap.d index cbed04c..af5157b 100644 --- a/source/ikod/containers/hashmap.d +++ b/source/ikod/containers/hashmap.d @@ -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;