cmd: Remove dead assignments (clang).

This commit is contained in:
Frédéric Delanoy 2012-12-19 21:55:40 +01:00 committed by Alexandre Julliard
parent e431d89ed2
commit 5188f08bf4
2 changed files with 0 additions and 6 deletions

View File

@ -440,7 +440,6 @@ static BOOL WCMD_ManualCopy(WCHAR *srcname, WCHAR *dstname, BOOL ascii, BOOL app
}
/* Loop copying data from source to destination until EOF read */
ok = TRUE;
do
{
char buffer[MAXSTRING];

View File

@ -1157,8 +1157,6 @@ void WCMD_run_program (WCHAR *command, BOOL called)
static const WCHAR batExt[] = {'.','b','a','t','\0'};
static const WCHAR cmdExt[] = {'.','c','m','d','\0'};
launched = TRUE;
/* Special case BAT and CMD */
if (ext && (!strcmpiW(ext, batExt) || !strcmpiW(ext, cmdExt))) {
BOOL oldinteractive = interactive;
@ -2404,9 +2402,6 @@ int wmain (int argc, WCHAR *argvW[])
* parameters after the /C or /K by pretending there was a single space */
if (argPos == NULL) argPos = (WCHAR *)spaceW;
/* Build the command to execute - It is what is left in argPos */
len = strlenW(argPos);
/* Take a copy */
cmd = heap_strdupW(argPos);