Commit 6b16d022 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

cmd: WCMD_strtrim_trailing_spaces() is unused so remove it.

parent e7b12570
...@@ -98,7 +98,6 @@ int WCMD_volume (int mode, WCHAR *command); ...@@ -98,7 +98,6 @@ int WCMD_volume (int mode, WCHAR *command);
WCHAR *WCMD_fgets (WCHAR *s, int n, HANDLE stream); WCHAR *WCMD_fgets (WCHAR *s, int n, HANDLE stream);
WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **where); WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **where);
WCHAR *WCMD_strtrim_leading_spaces (WCHAR *string); WCHAR *WCMD_strtrim_leading_spaces (WCHAR *string);
void WCMD_strtrim_trailing_spaces (WCHAR *string);
void WCMD_opt_s_strip_quotes(WCHAR *cmd); void WCMD_opt_s_strip_quotes(WCHAR *cmd);
void WCMD_HandleTildaModifiers(WCHAR **start, WCHAR *forVariable, WCHAR *forValue, BOOL justFors); void WCMD_HandleTildaModifiers(WCHAR **start, WCHAR *forVariable, WCHAR *forValue, BOOL justFors);
......
...@@ -438,23 +438,6 @@ WCHAR *WCMD_strtrim_leading_spaces (WCHAR *string) { ...@@ -438,23 +438,6 @@ WCHAR *WCMD_strtrim_leading_spaces (WCHAR *string) {
} }
/************************************************************************* /*************************************************************************
* 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 * WCMD_opt_s_strip_quotes
* *
* Remove first and last quote WCHARacters, preserving all other text * Remove first and last quote WCHARacters, preserving all other text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment