public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] locale: Remove set but unused variable on ld-collate.c
@ 2022-03-31 11:55 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2022-03-31 11:55 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c5c65de1b29f8f73f8aff5c3526427fc37760f2e

commit c5c65de1b29f8f73f8aff5c3526427fc37760f2e
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Fri Mar 25 13:57:38 2022 -0300

    locale: Remove set but unused variable on ld-collate.c
    
    Checked on x86_64-linux-gnu and i686-linux-gnu.

Diff:
---
 locale/programs/ld-collate.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c
index 7b0d1bf70b..992814491d 100644
--- a/locale/programs/ld-collate.c
+++ b/locale/programs/ld-collate.c
@@ -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)
 	{


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-31 11:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 11:55 [glibc] locale: Remove set but unused variable on ld-collate.c Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).