From d6cd1c46889e94b325244e5ba5ccea97cc856952 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 15 Sep 2021 16:06:43 +0800 Subject: ... --- include/cru/common/Format.hpp | 18 ------------------ include/cru/common/HandlerRegistry.hpp | 2 +- src/common/CMakeLists.txt | 1 - 3 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 include/cru/common/Format.hpp diff --git a/include/cru/common/Format.hpp b/include/cru/common/Format.hpp deleted file mode 100644 index d4da2208..00000000 --- a/include/cru/common/Format.hpp +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once -#include "Base.hpp" - -#include "StringUtil.hpp" - -#include -#include -#include -#include -#include -#include - -namespace cru { -template >> -std::u16string ToUtf16String(T number) { - return ToUtf16(std::to_string(number)); -} -} // namespace cru diff --git a/include/cru/common/HandlerRegistry.hpp b/include/cru/common/HandlerRegistry.hpp index 0af97968..8049e74b 100644 --- a/include/cru/common/HandlerRegistry.hpp +++ b/include/cru/common/HandlerRegistry.hpp @@ -77,7 +77,7 @@ class HandlerRegistry final { } HandlerRegistryIterator end() const { - return HandlerRegistryIterator(handler_list_.begin()); + return HandlerRegistryIterator(handler_list_.end()); } private: diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index e1642da2..e07017bb 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -9,7 +9,6 @@ target_sources(cru_base PUBLIC ${CRU_BASE_INCLUDE_DIR}/Bitmask.hpp ${CRU_BASE_INCLUDE_DIR}/Event.hpp ${CRU_BASE_INCLUDE_DIR}/Exception.hpp - ${CRU_BASE_INCLUDE_DIR}/Format.hpp ${CRU_BASE_INCLUDE_DIR}/Logger.hpp ${CRU_BASE_INCLUDE_DIR}/PreConfig.hpp ${CRU_BASE_INCLUDE_DIR}/Range.hpp -- cgit v1.2.3