From f1435d53d4b421b8692cc3903de9db2a2a2db777 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Thu, 27 Apr 2017 18:22:44 +0100 Subject: [PATCH] Remove 'init' method from nodes --- include/boost/unordered/detail/implementation.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index 25aa1f34..0f5f6807 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -1691,7 +1691,6 @@ template void node_constructor::create_node() BOOST_UNORDERED_CALL_CONSTRUCT0( node_allocator_traits, alloc_, boost::addressof(*node_)); - node_->init(node_); node_constructed_ = true; } @@ -2182,7 +2181,6 @@ template struct node_holder { node_pointer n = nodes_; nodes_ = static_cast(nodes_->next_); - n->init(n); n->next_ = link_pointer(); return n; } @@ -4461,8 +4459,6 @@ struct node : boost::unordered::detail::value_base node() : next_(), bucket_info_(0) {} - void init(node_pointer) {} - std::size_t get_bucket() const { return bucket_info_ & ((std::size_t)-1 >> 1); @@ -4500,8 +4496,6 @@ template struct ptr_node : boost::unordered::detail::ptr_bucket ptr_node() : bucket_base(), bucket_info_(0) {} - void init(node_pointer) {} - void* address() { return value_base_.address(); } value_type& value() { return value_base_.value(); } value_type* value_ptr() { return value_base_.value_ptr(); }