cmd: WCMD_strtrim_trailing_spaces() is unused so remove it.

This commit is contained in:
Francois Gouget 2009-01-05 19:58:01 +01:00 committed by Alexandre Julliard
parent e7b125702f
commit 6b16d0229d
2 changed files with 0 additions and 18 deletions

View File

@ -98,7 +98,6 @@ int WCMD_volume (int mode, WCHAR *command);
WCHAR *WCMD_fgets (WCHAR *s, int n, HANDLE stream);
WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **where);
WCHAR *WCMD_strtrim_leading_spaces (WCHAR *string);
void WCMD_strtrim_trailing_spaces (WCHAR *string);
void WCMD_opt_s_strip_quotes(WCHAR *cmd);
void WCMD_HandleTildaModifiers(WCHAR **start, WCHAR *forVariable, WCHAR *forValue, BOOL justFors);

View File

@ -437,23 +437,6 @@ WCHAR *WCMD_strtrim_leading_spaces (WCHAR *string) {
return ptr;
}
/*************************************************************************
* WCMD_strtrim_trailing_spaces
*
* Remove trailing spaces from a string. This routine modifies the input
* string by placing a null after the last non-space WCHARacter
*/
void WCMD_strtrim_trailing_spaces (WCHAR *string) {
WCHAR *ptr;
ptr = string + strlenW (string) - 1;
while ((*ptr == ' ') && (ptr >= string)) {
*ptr = '\0';
ptr--;
}
}
/*************************************************************************
* WCMD_opt_s_strip_quotes
*