Remove or disable a little dead code uncovered by gcov
This commit is contained in:
parent
148a5e38d4
commit
24dba1b374
|
@ -51,28 +51,6 @@
|
||||||
|
|
||||||
#include "corestrings.h" // for: STR_ERR2_ARCH_CRYPTO_ERR
|
#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
|
// eArchiveCrypto
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
|
@ -78,14 +78,14 @@ void cCmdLineParser::AddArg(int argId, const TSTRING& arg, const TSTRING& alias,
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Clear
|
// Clear
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
void cCmdLineParser::Clear()
|
/*void cCmdLineParser::Clear()
|
||||||
{
|
{
|
||||||
mLastArgInfo.mId = -1;
|
mLastArgInfo.mId = -1;
|
||||||
mLastArgInfo.mNumParams = PARAM_INVALID;
|
mLastArgInfo.mNumParams = PARAM_INVALID;
|
||||||
mArgTable.Clear();
|
mArgTable.Clear();
|
||||||
mArgData.clear();
|
mArgData.clear();
|
||||||
mMutExList.clear();
|
mMutExList.clear();
|
||||||
}
|
}*/
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Parse
|
// Parse
|
||||||
|
|
|
@ -132,7 +132,7 @@ public:
|
||||||
// the input was invalid in some way; the actual error can be determined by calling
|
// the input was invalid in some way; the actual error can be determined by calling
|
||||||
// GetErrorInfo() below.
|
// GetErrorInfo() below.
|
||||||
|
|
||||||
void Clear();
|
// void Clear();
|
||||||
// clear out all information that this class contains
|
// clear out all information that this class contains
|
||||||
|
|
||||||
bool LookupArgInfo(int argId, TSTRING& arg, TSTRING& alias) const;
|
bool LookupArgInfo(int argId, TSTRING& arg, TSTRING& alias) const;
|
||||||
|
|
|
@ -114,6 +114,7 @@ namespace cStringUtil
|
||||||
wc16_string TstrToWstr( const TSTRING& tstr );
|
wc16_string TstrToWstr( const TSTRING& tstr );
|
||||||
// convert a TSTRING to a wc16_string
|
// convert a TSTRING to a wc16_string
|
||||||
|
|
||||||
|
|
||||||
template <class IterT>
|
template <class IterT>
|
||||||
void splitstring(IterT& iter,
|
void splitstring(IterT& iter,
|
||||||
const TSTRING& str,
|
const TSTRING& str,
|
||||||
|
@ -146,7 +147,7 @@ namespace cStringUtil
|
||||||
|
|
||||||
}//cStringUtil::
|
}//cStringUtil::
|
||||||
|
|
||||||
|
/*
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// push_back_string
|
// push_back_string
|
||||||
//
|
//
|
||||||
|
@ -199,7 +200,7 @@ namespace std
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
#endif//__STRINGUTIL_H
|
#endif//__STRINGUTIL_H
|
||||||
|
|
||||||
|
|
|
@ -64,20 +64,17 @@
|
||||||
#include "tw/twerrors.h"
|
#include "tw/twerrors.h"
|
||||||
#include "core/ntmbs.h"
|
#include "core/ntmbs.h"
|
||||||
#include "core/displayencoder.h"
|
#include "core/displayencoder.h"
|
||||||
|
#include "core/tw_signal.h"
|
||||||
|
|
||||||
#ifdef TW_PROFILE
|
#ifdef TW_PROFILE
|
||||||
#include "core/tasktimer.h"
|
#include "core/tasktimer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "core/fsservices.h" // for the util_IsDir() stuff
|
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#if SUPPORTS_TERMIOS
|
#if SUPPORTS_TERMIOS
|
||||||
# include <termios.h>
|
# include <termios.h>
|
||||||
# include <sys/ioctl.h>
|
# include <sys/ioctl.h>
|
||||||
|
|
||||||
#include "core/tw_signal.h"
|
|
||||||
int _getch(void);
|
int _getch(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue