diff options
author | Marko Myllynen <myllynen@redhat.com> | 2015-05-12 10:50:28 +0300 |
---|---|---|
committer | Ondřej Bílka <neleai@seznam.cz> | 2015-06-09 09:34:06 +0200 |
commit | fc5771e43ccf905d3e134b1e3349a3657acaa2a9 (patch) | |
tree | 5517089eaccdb758065465150c2babbb0966be86 /locale/C-ctype.c | |
parent | 5fe2a126d115e6b3220886f416b6b544252f8589 (diff) | |
download | glibc-fc5771e43ccf905d3e134b1e3349a3657acaa2a9.tar.gz glibc-fc5771e43ccf905d3e134b1e3349a3657acaa2a9.tar.xz glibc-fc5771e43ccf905d3e134b1e3349a3657acaa2a9.zip |
Remove unused PREDEFINED_CLASSES code
Hi, AFAICS PREDEFINED_CLASSES is never defined thus the code is unused. It would seem that the code is related to LO_LTYPE which was discussed in the past but there are no any recent references: http://pubs.opengroup.org/onlinepubs/9638399/loltype.htm Patch below, compiles and passes make check. 2015-05-12 Marko Myllynen <myllynen@redhat.com> * locale/C-ctype.c (PREDEFINED_CLASSES): Remove. * locale/programs/ld-ctype.c: Likewise.
Diffstat (limited to 'locale/C-ctype.c')
-rw-r--r-- | locale/C-ctype.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/locale/C-ctype.c b/locale/C-ctype.c index 7c616d8015..aa5f19f838 100644 --- a/locale/C-ctype.c +++ b/locale/C-ctype.c @@ -569,22 +569,9 @@ const struct __locale_data _nl_C_LC_CTYPE attribute_hidden = { .string = NULL }, /* _NL_CTYPE_CLASS_NAMES */ { .string = "upper\0" "lower\0" "alpha\0" "digit\0" "xdigit\0" "space\0" - "print\0" "graph\0" "blank\0" "cntrl\0" "punct\0" "alnum\0" -#ifdef PREDEFINED_CLASSES - "left_to_right\0" "right_to_left\0" "num_terminator\0" - "num_separator\0" "segment_separator\0" "block_separator\0" - "direction_control\0" "sym_swap_layout\0" "char_shape_selector\0" - "num_shape_selector\0" "non_spacing\0" "non_spacing_level3\0" - "r_connect\0" "no_connect\0" "no_connect-space\0" - "vowel_connect\0" -#endif - }, + "print\0" "graph\0" "blank\0" "cntrl\0" "punct\0" "alnum\0" }, /* _NL_CTYPE_MAP_NAMES */ - { .string = "toupper\0" "tolower\0" -#ifdef PREDEFINED_CLASSES - "tosymmetric\0" -#endif - }, + { .string = "toupper\0" "tolower\0" }, /* _NL_CTYPE_WIDTH */ { .string = (const char *) _nl_C_LC_CTYPE_width.header }, /* _NL_CTYPE_MB_CUR_MAX */ |