From 6b16d0229d3e12d7860a2f6b9b9d823e02e16607 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Mon, 5 Jan 2009 19:58:01 +0100 Subject: [PATCH] cmd: WCMD_strtrim_trailing_spaces() is unused so remove it. --- programs/cmd/wcmd.h | 1 - programs/cmd/wcmdmain.c | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/programs/cmd/wcmd.h b/programs/cmd/wcmd.h index ebf513d72d..13964486e3 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 e4f29a1f35..06c97d4167 100644 --- a/programs/cmd/wcmdmain.c +++ b/programs/cmd/wcmdmain.c @@ -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 *