[2/3] cmd: WCMD_strtrim_trailing_spaces() is unused so remove it.

Francois Gouget fgouget at free.fr
Mon Jan 5 12:58:01 CST 2009


---
 programs/cmd/wcmd.h     |    1 -
 programs/cmd/wcmdmain.c |   17 -----------------
 2 files changed, 0 insertions(+), 18 deletions(-)

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 @@ 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);
 
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 @@ 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
  *
  *	Remove first and last quote WCHARacters, preserving all other text
-- 
1.5.6.5




More information about the wine-patches mailing list