Skip to content

Commit

Permalink
[libc++] Remove obsolete Solaris and Newlib support for locales (llvm…
Browse files Browse the repository at this point in the history
…#113721)

The solaris header file doesn't even exist, so that's definitely dead
code. The newlib header is empty, which means that localization can't
work on that platform. If someone is using libc++ with Newlib, they must
be providing LIBCXX_HAS_NO_LOCALIZATION today for anything to work, so
that header is basically dead code as well.
  • Loading branch information
ldionne authored and NoumanAmir657 committed Nov 4, 2024
1 parent 708db95 commit 6abc7ac
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion libcxx/include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ set(files
__locale_dir/locale_base_api/fuchsia.h
__locale_dir/locale_base_api/ibm.h
__locale_dir/locale_base_api/musl.h
__locale_dir/locale_base_api/newlib.h
__locale_dir/locale_base_api/openbsd.h
__locale_dir/locale_base_api/win32.h
__locale_dir/locale_guard.h
Expand Down
4 changes: 0 additions & 4 deletions libcxx/include/__locale_dir/locale_base_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
# include <__locale_dir/locale_base_api/ibm.h>
#elif defined(__ANDROID__)
# include <__locale_dir/locale_base_api/android.h>
#elif defined(__sun__)
# include <__locale_dir/locale_base_api/solaris.h>
#elif defined(_NEWLIB_VERSION)
# include <__locale_dir/locale_base_api/newlib.h>
#elif defined(__OpenBSD__)
# include <__locale_dir/locale_base_api/openbsd.h>
#elif defined(__Fuchsia__)
Expand Down
12 changes: 0 additions & 12 deletions libcxx/include/__locale_dir/locale_base_api/newlib.h

This file was deleted.

1 change: 0 additions & 1 deletion libcxx/include/module.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,6 @@ module std [system] {
textual header "__locale_dir/locale_base_api/fuchsia.h"
textual header "__locale_dir/locale_base_api/ibm.h"
textual header "__locale_dir/locale_base_api/musl.h"
textual header "__locale_dir/locale_base_api/newlib.h"
textual header "__locale_dir/locale_base_api/openbsd.h"
textual header "__locale_dir/locale_base_api/win32.h"
}
Expand Down

0 comments on commit 6abc7ac

Please sign in to comment.