From 09b59e698d2506ea049236d096c406a4ab50cd8c Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 21 Dec 2023 09:20:06 +0100 Subject: [PATCH] Refactor Signed-off-by: Simon Rozman --- include/stdex/hex.hpp | 14 ++------------ include/stdex/vector_queue.hpp | 3 +-- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/include/stdex/hex.hpp b/include/stdex/hex.hpp index 6a164cc5c..387ac74ad 100644 --- a/include/stdex/hex.hpp +++ b/include/stdex/hex.hpp @@ -10,7 +10,6 @@ #include #include - namespace stdex { /// @@ -23,9 +22,7 @@ namespace stdex /// Constructs blank encoding session /// hex_enc() noexcept - { - } - + {} /// /// Encodes one block of information, and _appends_ it to the output @@ -54,7 +51,6 @@ namespace stdex } } - /// /// Returns maximum encoded size /// @@ -68,7 +64,6 @@ namespace stdex } }; - /// /// Hexadecimal decoding session /// @@ -81,9 +76,7 @@ namespace stdex hex_dec() noexcept : buf(0), num(0) - { - } - + {} /// /// Decodes one block of information, and _appends_ it to the output @@ -131,7 +124,6 @@ namespace stdex } } - /// /// Resets decoding session /// @@ -140,7 +132,6 @@ namespace stdex num = 0; } - /// /// Returns maximum decoded size /// @@ -153,7 +144,6 @@ namespace stdex return (size + 1)/2; } - protected: uint8_t buf; ///< Internal buffer size_t num; ///< Number of nibbles used in `buf` diff --git a/include/stdex/vector_queue.hpp b/include/stdex/vector_queue.hpp index 6b8a62a07..d3f4bc79d 100644 --- a/include/stdex/vector_queue.hpp +++ b/include/stdex/vector_queue.hpp @@ -59,8 +59,7 @@ namespace stdex m_head(0), m_count(0), m_size_max(size_max) - { - } + {} /// /// Copies existing queue.