about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-10 09:51:20 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-23 14:32:23 -0300
commit41397b9337da4f9c4bba4b6786c9edf961469ace (patch)
tree2ee083aec1cb7cb39b5a0f683b8d95a9a4dc522d /locale
parent33f4d09bdc3d7730ae2fb3e9b67819d32a6b9ae6 (diff)
downloadglibc-41397b9337da4f9c4bba4b6786c9edf961469ace.tar.gz
glibc-41397b9337da4f9c4bba4b6786c9edf961469ace.tar.xz
glibc-41397b9337da4f9c4bba4b6786c9edf961469ace.zip
locale: Remove ununsed wctype_table_get function
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/ld-ctype.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
index 5169d629ab..c6749dbd82 100644
--- a/locale/programs/ld-ctype.c
+++ b/locale/programs/ld-ctype.c
@@ -3354,33 +3354,6 @@ wctype_table_init (struct wctype_table *t)
   t->level3_alloc = t->level3_size = 0;
 }
 
-/* Retrieve an entry.  */
-static inline int
-wctype_table_get (struct wctype_table *t, uint32_t wc)
-{
-  uint32_t index1 = wc >> (t->q + t->p + 5);
-  if (index1 < t->level1_size)
-    {
-      uint32_t lookup1 = t->level1[index1];
-      if (lookup1 != EMPTY)
-	{
-	  uint32_t index2 = ((wc >> (t->p + 5)) & ((1 << t->q) - 1))
-			    + (lookup1 << t->q);
-	  uint32_t lookup2 = t->level2[index2];
-	  if (lookup2 != EMPTY)
-	    {
-	      uint32_t index3 = ((wc >> 5) & ((1 << t->p) - 1))
-				+ (lookup2 << t->p);
-	      uint32_t lookup3 = t->level3[index3];
-	      uint32_t index4 = wc & 0x1f;
-
-	      return (lookup3 >> index4) & 1;
-	    }
-	}
-    }
-  return 0;
-}
-
 /* Add one entry.  */
 static void
 wctype_table_add (struct wctype_table *t, uint32_t wc)