From e59f8736fe7396af6b69c6f370b99555ded38e0b Mon Sep 17 00:00:00 2001 From: neargye Date: Tue, 30 May 2023 17:18:07 +0400 Subject: [PATCH] remove unnecessary template instantiations --- include/magic_enum.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/magic_enum.hpp b/include/magic_enum.hpp index cda2c89..dfa22dd 100644 --- a/include/magic_enum.hpp +++ b/include/magic_enum.hpp @@ -496,11 +496,6 @@ constexpr auto n() noexcept { #else auto name = str_view{}; #endif - constexpr auto prefix = n().size(); - if (name.size_ > prefix && name.str_[prefix] == ':') { - name.size_ -= (prefix + 2); - name.str_ += (prefix + 2); - } std::size_t p = 0; for (std::size_t i = 0; i < name.size_; ++i) { if (name.str_[i] == ':') {