• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From ee2a5b50e7d1940ba8745715b62ceb9efd3a96da Mon Sep 17 00:00:00 2001
2From: Sebastian Pipping <sebastian@pipping.org>
3Date: Tue, 8 Feb 2022 17:37:14 +0100
4Subject: [PATCH] lib: Drop unused macro UTF8_GET_NAMING
5
6---
7 lib/xmltok.c | 5 -----
8 1 file changed, 5 deletions(-)
9
10diff --git a/lib/xmltok.c b/lib/xmltok.c
11index a72200e..3bddf12 100644
12--- a/lib/xmltok.c
13+++ b/lib/xmltok.c
14@@ -98,11 +98,6 @@
15         + ((((byte)[1]) & 3) << 1) + ((((byte)[2]) >> 5) & 1)]                 \
16    & (1u << (((byte)[2]) & 0x1F)))
17
18-#define UTF8_GET_NAMING(pages, p, n)                                           \
19-  ((n) == 2                                                                    \
20-       ? UTF8_GET_NAMING2(pages, (const unsigned char *)(p))                   \
21-       : ((n) == 3 ? UTF8_GET_NAMING3(pages, (const unsigned char *)(p)) : 0))
22-
23 /* Detection of invalid UTF-8 sequences is based on Table 3.1B
24    of Unicode 3.2: http://www.unicode.org/unicode/reports/tr28/
25    with the additional restriction of not allowing the Unicode
26--
271.8.3.1
28
29