From 060168dd1181bb38126e61819ca199b85f7c8fed Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 16 Nov 2022 15:35:14 +0100 Subject: entity: don't need static string literal after all --- src/entity.hpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src') diff --git a/src/entity.hpp b/src/entity.hpp index 8d62780b..a5c9aa90 100644 --- a/src/entity.hpp +++ b/src/entity.hpp @@ -110,33 +110,6 @@ struct write_field(*--s1) - static_cast(*--s2)); - } while (--n != 0); - } - return 0; -#endif -} - -constexpr inline std::size_t strlen_(const char* s) -{ -#ifdef __GNUC__ - return __builtin_strlen(s); -#else - const char* end; - for (end = s; *end; end++) - ; - return std::size_t(end - s); -#endif -} - template requires std::invocable(std::declval()))> constexpr CORRADE_ALWAYS_INLINE void visit_tuple(F&& fun, Tuple&& tuple) -- cgit v1.2.3