Skip to content

Commit 4e219ee

Browse files
committed
remove unused variable and type alias
1 parent 55e1358 commit 4e219ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/fmt/format.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ class basic_memory_buffer : public detail::buffer<T> {
851851
allocator_move_impl(basic_memory_buffer& other) {
852852
T* data = other.data();
853853
if (alloc_ != other.alloc_ && data != other.store_) {
854-
size_t size = other.size(), capacity = other.capacity();
854+
size_t size = other.size();
855855
// Perform copy operation, allocators are different
856856
this->resize(size);
857857
detail::copy<T>(data, data + size, this->data());
@@ -862,7 +862,6 @@ class basic_memory_buffer : public detail::buffer<T> {
862862

863863
// Move data from other to this buffer.
864864
FMT_CONSTEXPR20 void move(basic_memory_buffer& other) {
865-
using alloc_traits = std::allocator_traits<Allocator>;
866865
T* data = other.data();
867866
size_t size = other.size(), capacity = other.capacity();
868867
// Replicate the behaviour of std library containers

0 commit comments

Comments
 (0)