From: Sergey Matveev Date: Tue, 30 Sep 2025 09:42:12 +0000 (+0300) Subject: Remove unused struct element X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8e5d4d589a06022f4c35733869efbc3f24a9bca2c1ab861122ba7057f3aeb19f;p=keks.git Remove unused struct element --- diff --git a/c/lib/utf8.c b/c/lib/utf8.c index c6a118a..df22393 100644 --- a/c/lib/utf8.c +++ b/c/lib/utf8.c @@ -14,7 +14,6 @@ const uint32_t KEKSUTF8InvalidCp = 0xFFFD; static const struct { uint32_t mincp; - uint32_t maxcp; uint8_t lower; uint8_t upper; char _pad[2]; @@ -25,7 +24,6 @@ static const struct { .lower = 0x00, /* 00000000 */ .upper = 0x7F, /* 01111111 */ .mincp = (uint32_t)0, - .maxcp = ((uint32_t)1 << (uint8_t)7) - 1, /* 7 bits capacity */ }, [1] = { @@ -33,7 +31,6 @@ static const struct { .lower = 0xC0, /* 11000000 */ .upper = 0xDF, /* 11011111 */ .mincp = (uint32_t)1 << (uint8_t)7, - .maxcp = ((uint32_t)1 << (uint8_t)11) - 1, /* 5+6=11 bits capacity */ }, [2] = { @@ -41,7 +38,6 @@ static const struct { .lower = 0xE0, /* 11100000 */ .upper = 0xEF, /* 11101111 */ .mincp = (uint32_t)1 << (uint8_t)11, - .maxcp = ((uint32_t)1 << (uint8_t)16) - 1, /* 4+6+6=16 bits capacity */ }, [3] = { @@ -49,7 +45,6 @@ static const struct { .lower = 0xF0, /* 11110000 */ .upper = 0xF7, /* 11110111 */ .mincp = (uint32_t)1 << (uint8_t)16, - .maxcp = ((uint32_t)1 << (uint8_t)21) - 1, /* 3+6+6+6=21 bits capacity */ }, };