Remove or disable a little dead code uncovered by gcov

This commit is contained in:
Brian Cox 2017-07-28 20:15:50 -07:00
parent 148a5e38d4
commit 24dba1b374
5 changed files with 7 additions and 31 deletions

View File

@ -51,28 +51,6 @@
#include "corestrings.h" // for: STR_ERR2_ARCH_CRYPTO_ERR
//=============================================================================
// Utility Functions
//=============================================================================
///////////////////////////////////////////////////////////////////////////////
// util_IsDir -- returns true if a given file is a directory
///////////////////////////////////////////////////////////////////////////////
bool util_IsDir( const TSTRING& fileName )
{
cFSStatArgs s;
try
{
iFSServices::GetInstance()->Stat( fileName, s );
}
catch( eFSServices )
{
return false;
}
return( s.mFileType == cFSStatArgs::TY_DIR );
}
//=============================================================================
// eArchiveCrypto
//=============================================================================

View File

@ -78,14 +78,14 @@ void cCmdLineParser::AddArg(int argId, const TSTRING& arg, const TSTRING& alias,
///////////////////////////////////////////////////////////////////////////////
// Clear
///////////////////////////////////////////////////////////////////////////////
void cCmdLineParser::Clear()
/*void cCmdLineParser::Clear()
{
mLastArgInfo.mId = -1;
mLastArgInfo.mNumParams = PARAM_INVALID;
mArgTable.Clear();
mArgData.clear();
mMutExList.clear();
}
}*/
///////////////////////////////////////////////////////////////////////////////
// Parse

View File

@ -132,7 +132,7 @@ public:
// the input was invalid in some way; the actual error can be determined by calling
// GetErrorInfo() below.
void Clear();
// void Clear();
// clear out all information that this class contains
bool LookupArgInfo(int argId, TSTRING& arg, TSTRING& alias) const;

View File

@ -114,6 +114,7 @@ namespace cStringUtil
wc16_string TstrToWstr( const TSTRING& tstr );
// convert a TSTRING to a wc16_string
template <class IterT>
void splitstring(IterT& iter,
const TSTRING& str,
@ -146,7 +147,7 @@ namespace cStringUtil
}//cStringUtil::
/*
//-----------------------------------------------------------------------------
// push_back_string
//
@ -199,7 +200,7 @@ namespace std
}
};
}
*/
#endif//__STRINGUTIL_H

View File

@ -64,20 +64,17 @@
#include "tw/twerrors.h"
#include "core/ntmbs.h"
#include "core/displayencoder.h"
#include "core/tw_signal.h"
#ifdef TW_PROFILE
#include "core/tasktimer.h"
#endif
#include "core/fsservices.h" // for the util_IsDir() stuff
#include <unistd.h>
#include <fcntl.h>
#if SUPPORTS_TERMIOS
# include <termios.h>
# include <sys/ioctl.h>
#include "core/tw_signal.h"
int _getch(void);
#endif