Francois Gouget : cmd: WCMD_strtrim_trailing_spaces() is unused so remove it.
Alexandre Julliard
julliard at winehq.org
Tue Jan 6 08:22:55 CST 2009
Module: wine
Branch: master
Commit: 6b16d0229d3e12d7860a2f6b9b9d823e02e16607
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6b16d0229d3e12d7860a2f6b9b9d823e02e16607
Author: Francois Gouget <fgouget at free.fr>
Date: Mon Jan 5 19:58:01 2009 +0100
cmd: WCMD_strtrim_trailing_spaces() is unused so remove it.
---
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
More information about the wine-cvs
mailing list