mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
cmd: WCMD_strtrim_trailing_spaces() is unused so remove it.
This commit is contained in:
parent
e7b125702f
commit
6b16d0229d
@ -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);
|
||||
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user