diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 20:15:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 11:29:15 +0000 |
commit | d09c534c982cdb37535c03504ec7420636efb033 (patch) | |
tree | 6d01941479f6dca4c2af87d0507b4403c511dc02 /codemaker/source/javamaker | |
parent | ba5261057cc759a9bd1e3b5fb5917dd84793d325 (diff) |
coverity#440029 Logically dead code
Change-Id: Id071c8658b473b9d393a32e1da2c2474bb7361d3
Diffstat (limited to 'codemaker/source/javamaker')
-rw-r--r-- | codemaker/source/javamaker/javaoptions.cxx | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/codemaker/source/javamaker/javaoptions.cxx b/codemaker/source/javamaker/javaoptions.cxx index db7d896178ff..5e9130c16e19 100644 --- a/codemaker/source/javamaker/javaoptions.cxx +++ b/codemaker/source/javamaker/javaoptions.cxx @@ -51,9 +51,6 @@ sal_Bool JavaOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile) } i = 1; - } else - { - i = 0; } char *s=NULL; @@ -219,19 +216,7 @@ sal_Bool JavaOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile) } } else { - if (bCmdFile) - { - m_inputFiles.push_back(av[i]); - } else - { - OUString system_filepath; - if (osl_getCommandArg( i-1, &system_filepath.pData ) - != osl_Process_E_None) - { - OSL_ASSERT(false); - } - m_inputFiles.push_back(OUStringToOString(system_filepath, osl_getThreadTextEncoding())); - } + m_inputFiles.push_back(av[i]); } } } |