From fd5d575d7984a514141e1d0f88d4e8933838b69c Mon Sep 17 00:00:00 2001 From: Alex Fishgait Date: Mon, 16 Oct 2023 08:46:27 +0200 Subject: [PATCH] remove unused code --- tests/src/unit-allocator.cpp | 64 ------------------------------------ 1 file changed, 64 deletions(-) diff --git a/tests/src/unit-allocator.cpp b/tests/src/unit-allocator.cpp index 9efabf83c..e04a217b9 100644 --- a/tests/src/unit-allocator.cpp +++ b/tests/src/unit-allocator.cpp @@ -262,71 +262,7 @@ TEST_CASE("bad my_allocator::construct") } } -// namespace -// { -// template -// struct NAlloc -// { -// // Aliases and inner types -// using value_type = T; -// using size_type = std::size_t; -// using difference_type = ptrdiff_t; -// using reference = value_type&; -// using const_reference = const value_type&; -// using pointer = value_type*; -// using const_pointer = const value_type*; -// template -// struct rebind -// { -// using other = NAlloc; -// }; - -// NAlloc() : -// alloc() -// { - -// } - -// NAlloc(const NAlloc&) = default; // Copy constructor -// NAlloc(NAlloc&&) = default; // Move constructor -// NAlloc& operator=(const NAlloc& other) = default; // Copy assignment operator -// NAlloc& operator=(NAlloc&&) = default; // Move assignment operator - -// virtual ~NAlloc() = default; - -// pointer allocate(std::size_t n) -// { - -// return static_cast(alloc.allocate(n)); // get memory from pool -// } -// void deallocate(pointer p, std::size_t n) -// { -// m_alloc_size = n; -// alloc.deallocate(static_cast(p), 1); // return memory to pool -// } - - -// bool operator!=(const NAlloc& other) const -// { -// return !(*this == other); -// } -// bool operator==(const NAlloc& other) const -// { -// return alloc == other.alloc; -// } - -// my_allocator alloc; -// std::size_t m_alloc_size {}; -// }; - - -// using OstringStream = std::basic_ostringstream, NAlloc>; -// using IstringStream = std::basic_istringstream, NAlloc>; -// using RtString = std::basic_string, NAlloc>; - - -// } //namespace TEST_CASE("controlled bad_alloc_rt_string") {