diff --git a/BAN/include/BAN/Math.h b/BAN/include/BAN/Math.h index a5eeb44b..91a7a558 100644 --- a/BAN/include/BAN/Math.h +++ b/BAN/include/BAN/Math.h @@ -102,22 +102,4 @@ namespace BAN::Math return result; } - template - inline constexpr T little_endian_to_host(const uint8_t* bytes) - { - T result = 0; - for (size_t i = 0; i < sizeof(T); i++) - result |= (T)bytes[i] << (i * 8); - return result; - } - - template - inline constexpr T big_endian_to_host(const uint8_t* bytes) - { - T result = 0; - for (size_t i = 0; i < sizeof(T); i++) - result |= (T)bytes[i] << (8 * (sizeof(T) - i - 1)); - return result; - } - } \ No newline at end of file