Skip to content

Commit

Permalink
locale.c: Change a branch into an assert
Browse files Browse the repository at this point in the history
This code should no longer be necessary; but verify
  • Loading branch information
khwilliamson committed May 9, 2021
1 parent e5a3cb7 commit cc36c20
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions locale.c
Expand Up @@ -1118,6 +1118,7 @@ S_emulate_setlocale_i(pTHX_

PERL_ARGS_ASSERT_EMULATE_SETLOCALE_I;
assert(index <= NOMINAL_LC_ALL_INDEX);
assert(new_locale != NULL); /* No longer do queries come through here */

mask = category_masks[index];

Expand All @@ -1126,11 +1127,6 @@ S_emulate_setlocale_i(pTHX_
line, index, category_names[index], mask,
new_locale, categories[index]));

/* If just querying what the existing locale is ... */
if (new_locale == NULL) {
return my_querylocale_i(index);
}

# ifndef USE_QUERYLOCALE

if (strEQ(new_locale, "")) {
Expand Down

0 comments on commit cc36c20

Please sign in to comment.