aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-08-26 09:21:14 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-08-26 09:21:14 +0200
commitc2d55d3ce75ec1eb20e95c8ddf6ecb8a411831c9 (patch)
tree05f0c384f56dc0e718d909d9b4608acff244f4e6 /src
parent2952089a46478a1c8d0121a2a8ae818f299116f1 (diff)
Remove unused function
Diffstat (limited to 'src')
-rw-r--r--src/main.c14
1 files changed, 0 insertions, 14 deletions
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;
-}