@@ -57,11 +57,10 @@ class bigint_storage : private std::allocator_traits<Allocator>:: template rebin
5757 {
5858 ValueType* data_;
5959 size_type size_;
60- size_type capacity_;
6160
6261 public:
63- storage_view (ValueType* data, size_type size, size_type capacity )
64- : data_(data), size_(size), capacity_(capacity)
62+ storage_view (ValueType* data, size_type size)
63+ : data_(data), size_(size)
6564 {
6665 }
6766
@@ -84,12 +83,6 @@ class bigint_storage : private std::allocator_traits<Allocator>:: template rebin
8483 {
8584 return size_;
8685 }
87-
88- size_type capacity () const
89- {
90- return capacity_;
91- }
92-
9386 ValueType* begin ()
9487 {
9588 return data_;
@@ -511,15 +504,15 @@ class bigint_storage : private std::allocator_traits<Allocator>:: template rebin
511504 storage_view<word_type> get_storage_view ()
512505 {
513506 return common_.is_allocated_ ?
514- storage_view<word_type>{allocated_.data_ , allocated_.size_ , allocated_. capacity_ } :
515- storage_view<word_type>{inlined_.values_ , inlined_.size_ , inlined_capacity };
507+ storage_view<word_type>{allocated_.data_ , allocated_.size_ } :
508+ storage_view<word_type>{inlined_.values_ , inlined_.size_ };
516509 }
517510
518511 storage_view<const word_type> get_storage_view () const
519512 {
520513 return common_.is_allocated_ ?
521- storage_view<const word_type>{allocated_.data_ , allocated_.size_ , allocated_. capacity_ } :
522- storage_view<const word_type>{inlined_.values_ , inlined_.size_ , inlined_capacity };
514+ storage_view<const word_type>{allocated_.data_ , allocated_.size_ } :
515+ storage_view<const word_type>{inlined_.values_ , inlined_.size_ };
523516 }
524517
525518 void resize (size_type new_length)
0 commit comments