From 56ca299daf0ce278d88a18af6dc6ec528b45161f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 30 Oct 2022 07:12:00 +0100 Subject: remove unused code --- serialize/binary-serializer.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'serialize') diff --git a/serialize/binary-serializer.cpp b/serialize/binary-serializer.cpp index 682ae2f5..351febd0 100644 --- a/serialize/binary-serializer.cpp +++ b/serialize/binary-serializer.cpp @@ -4,33 +4,6 @@ namespace floormat::Serialize { -#if 0 -template -struct byte_array_iterator final -{ - using iterator_category = std::forward_iterator_tag; - using difference_type = std::ptrdiff_t; - using value_type = char; - using pointer = char*; - using reference = char&; - - constexpr byte_array_iterator(char (&buf)[N]) : buf{&buf}, i{0} {} - constexpr byte_array_iterator(char (&buf)[N], std::size_t i) : buf{&buf}, i{i} {} - - constexpr reference operator*() const { fm_assert(i < N); return (*buf)[i]; } - constexpr pointer operator->() { fm_assert(i < N); return &(*buf)[i]; } - constexpr byte_array_iterator& operator++() noexcept { i++; return *this; } - constexpr byte_array_iterator operator++(int) noexcept { byte_array_iterator tmp = *this; ++(*this); return tmp; } - friend constexpr bool operator==(const byte_array_iterator&& a, const byte_array_iterator&& b) noexcept = default; - -private: - char (*buf)[N]; - std::size_t i; -}; - -template struct byte_array_iterator; -#endif - [[maybe_unused]] static constexpr bool test1() { -- cgit v1.2.3