cmd: WCMD_strtrim_trailing_spaces() is unused so remove it.
diff --git a/programs/cmd/wcmd.h b/programs/cmd/wcmd.h
index ebf513d..1396448 100644
--- a/programs/cmd/wcmd.h
+++ b/programs/cmd/wcmd.h
@@ -98,7 +98,6 @@
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);
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index e4f29a1..06c97d4 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -438,23 +438,6 @@
}
/*************************************************************************
- * 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
*
* Remove first and last quote WCHARacters, preserving all other text