]> Savannah Git Hosting - gnulib.git/commitdiff
localename-unsafe: Remove dead code.
authorBruno Haible <bruno@clisp.org>
Fri, 21 Feb 2025 07:37:16 +0000 (08:37 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Feb 2025 07:37:16 +0000 (08:37 +0100)
* lib/localename-unsafe.c (gl_locale_name_thread_unsafe): On Solaris,
assume HAVE_NAMELESS_LOCALES is undefined.

ChangeLog
lib/localename-unsafe.c

index 609d352b511df053bbe3c28807b34a42e18e5644..54005a5b3964175204e65775b586931b3d80a625 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-02-21  Bruno Haible  <bruno@clisp.org>
+
+       localename-unsafe: Remove dead code.
+       * lib/localename-unsafe.c (gl_locale_name_thread_unsafe): On Solaris,
+       assume HAVE_NAMELESS_LOCALES is undefined.
+
 2025-02-21  Bruno Haible  <bruno@clisp.org>
 
        localename-unsafe: Remove support for nonexistent Solaris 12.
index 97d5f9af92af1f64dd786b6ac12b21477a8bfe1c..5b34aaf906081556d17277243a591a2f02220751 100644 (file)
@@ -3093,8 +3093,6 @@ gl_locale_name_thread_unsafe (int category, _GL_UNUSED const char *categoryname)
             default: /* We shouldn't get here.  */
               return "";
             }
-#  elif HAVE_NAMELESS_LOCALES
-        return get_locale_t_name (category, thread_locale);
 #  else
         /* Solaris 11 OpenIndiana.
            For the internal structure of locale objects, see