1From 01aad1074657586677f05ac1998da2158c57ee74 Mon Sep 17 00:00:00 2001 2From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> 3Date: Wed, 29 Nov 2023 21:26:47 +0100 4Subject: [PATCH 4/6] Remove unused upper case tag static data 5 6--- 7 source/lexbor/tag/res.h | 2 ++ 8 source/lexbor/tag/tag.c | 2 ++ 9 2 files changed, 4 insertions(+) 10 11diff --git a/source/lexbor/tag/res.h b/source/lexbor/tag/res.h 12index c7190c5..4ad1f37 100644 13--- a/source/lexbor/tag/res.h 14+++ b/source/lexbor/tag/res.h 15@@ -224,6 +224,7 @@ static const lxb_tag_data_t lxb_tag_res_data_default[LXB_TAG__LAST_ENTRY] = 16 {{.u.short_str = "xmp", .length = 3, .next = NULL}, LXB_TAG_XMP, 1, true} 17 }; 18 19+#if 0 20 static const lxb_tag_data_t lxb_tag_res_data_upper_default[LXB_TAG__LAST_ENTRY] = 21 { 22 {{.u.short_str = "#UNDEF", .length = 6, .next = NULL}, LXB_TAG__UNDEF, 1, true}, 23@@ -423,6 +424,7 @@ static const lxb_tag_data_t lxb_tag_res_data_upper_default[LXB_TAG__LAST_ENTRY] 24 {{.u.short_str = "WBR", .length = 3, .next = NULL}, LXB_TAG_WBR, 1, true}, 25 {{.u.short_str = "XMP", .length = 3, .next = NULL}, LXB_TAG_XMP, 1, true} 26 }; 27+#endif 28 29 static const lexbor_shs_entry_t lxb_tag_res_shs_data_default[] = 30 { 31diff --git a/source/lexbor/tag/tag.c b/source/lexbor/tag/tag.c 32index f8fcdf0..0571957 100644 33--- a/source/lexbor/tag/tag.c 34+++ b/source/lexbor/tag/tag.c 35@@ -92,6 +92,7 @@ lxb_tag_data_by_name(lexbor_hash_t *hash, const lxb_char_t *name, size_t len) 36 lexbor_hash_search_lower, name, len); 37 } 38 39+#if 0 40 const lxb_tag_data_t * 41 lxb_tag_data_by_name_upper(lexbor_hash_t *hash, 42 const lxb_char_t *name, size_t len) 43@@ -114,6 +115,7 @@ lxb_tag_data_by_name_upper(lexbor_hash_t *hash, 44 return (const lxb_tag_data_t *) lexbor_hash_search(hash, 45 lexbor_hash_search_upper, name, len); 46 } 47+#endif 48 49 /* 50 * No inline functions for ABI. 51-- 522.44.0 53 54