mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Remove dead code
Aftere9931bfb75, the locale argument of SB_lower_char() is never NULL, so the branch that deals with NULL can be removed (similar to howe9931bfb75for 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
This commit is contained in:
		@@ -95,10 +95,8 @@ SB_lower_char(unsigned char c, pg_locale_t locale, bool locale_is_c)
 | 
			
		||||
{
 | 
			
		||||
	if (locale_is_c)
 | 
			
		||||
		return pg_ascii_tolower(c);
 | 
			
		||||
	else if (locale)
 | 
			
		||||
		return tolower_l(c, locale->info.lt);
 | 
			
		||||
	else
 | 
			
		||||
		return pg_tolower(c);
 | 
			
		||||
		return tolower_l(c, locale->info.lt);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user