From c2d55d3ce75ec1eb20e95c8ddf6ecb8a411831c9 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 26 Aug 2024 09:21:14 +0200 Subject: Remove unused function --- src/main.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 7338443..21da822 100644 --- a/src/main.c +++ b/src/main.c @@ -23,8 +23,6 @@ static inline uint32_t pow32(uint32_t, uint32_t) __attribute__((always_inline, const)); static inline bool xisdigit(char) __attribute__((always_inline, const)); -static inline bool bigendian(void) - __attribute__((always_inline, const)); static int digits = 6, period = 30; @@ -180,15 +178,3 @@ xisdigit(char ch) { return ch >= '0' && ch <= '9'; } - -bool -bigendian(void) -{ - union { - uint16_t u16; - uint8_t u8[2]; - } u = { - .u16 = 0x0102U, - }; - return u.u8[0] == 1; -} -- cgit v1.2.3