Skip to content

Commit 4eb5089

Browse files
committed
Remove dead code
After e9931bf, the locale argument of SB_lower_char() is never NULL, so the branch that deals with NULL can be removed (similar to how e9931bf for example removed those branches in str_tolower()). Reviewed-by: Jeff Davis <pgsql@j-davis.com> Discussion: https://www.postgresql.org/message-id/4f562d84-87f4-44dc-8946-01d6c437936f@eisentraut.org
1 parent f1976df commit 4eb5089

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/backend/utils/adt/like.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ SB_lower_char(unsigned char c, pg_locale_t locale, bool locale_is_c)
9595
{
9696
if (locale_is_c)
9797
return pg_ascii_tolower(c);
98-
else if (locale)
99-
return tolower_l(c, locale->info.lt);
10098
else
101-
return pg_tolower(c);
99+
return tolower_l(c, locale->info.lt);
102100
}
103101

104102

0 commit comments

Comments
 (0)