]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
locale: Remove set but unused variable on ld-collate.c
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 25 Mar 2022 16:57:38 +0000 (13:57 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 31 Mar 2022 11:53:40 +0000 (08:53 -0300)
Checked on x86_64-linux-gnu and i686-linux-gnu.

locale/programs/ld-collate.c

index 7b0d1bf70bdfff7843523454964855c20e52eb75..992814491d2a5e2321786844f1d7930aa3b5e54b 100644 (file)
@@ -1562,7 +1562,6 @@ collate_finish (struct localedef_t *locale, const struct charmap_t *charmap)
   int need_undefined = 0;
   struct section_list *sect;
   int ruleidx;
-  int nr_wide_elems = 0;
 
   if (collate == NULL)
     {
@@ -1716,13 +1715,7 @@ symbol `%s' has the same encoding as"), (*eptr)->name);
        }
 
       if (runp->used_in_level)
-       {
-         runp->wcorder = wcact++;
-
-         /* We take the opportunity to count the elements which have
-            wide characters.  */
-         ++nr_wide_elems;
-       }
+       runp->wcorder = wcact++;
 
       if (runp->is_character)
        {