Skip to content

Commit 9d8e116

Browse files
committed
cppcheck-suppress unusedFunction removed
1 parent e702d83 commit 9d8e116

File tree

5 files changed

+0
-25
lines changed

5 files changed

+0
-25
lines changed

Diff for: src/com_cli/CLI.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ string CLI_Command::GetString(const string & name, std::istream & stream, const
9292
return value;
9393
}
9494

95-
//cppcheck-suppress unusedFunction
9695
bool CLI_Command::GetBool(const string & name, std::istream & stream, const bool default_)
9796
{
9897
bool value;

Diff for: src/com_config/config.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,27 @@ using namespace std;
2727
#include "config.h"
2828

2929

30-
//cppcheck-suppress unusedFunction
3130
bool config::readConfig(const string & filename, const string & sys)
3231
{
3332
mSystem = sys;
3433
return reader.reload(filename);
3534
}
3635

37-
//cppcheck-suppress unusedFunction
3836
int config::getTCPPort() const
3937
{
4038
return reader.getInteger("General", "TCP_Port", 1244);
4139
}
4240

43-
//cppcheck-suppress unusedFunction
4441
string config::getLogSetting() const
4542
{
4643
return reader.getString(mSystem, "Log_Setting", "Debug");
4744
}
4845

49-
//cppcheck-suppress unusedFunction
5046
bool config::getLogEchoToConsole() const
5147
{
5248
return reader.getBoolean(mSystem, "Log_Echo", true);
5349
}
5450

55-
//cppcheck-suppress unusedFunction
5651
string config::getLogfile() const
5752
{
5853
return reader.getString(mSystem, "Log_File", mSystem + ".log");

Diff for: src/com_convert/convert.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,12 @@ string Time_ttoMySQLTime(const boost::posix_time::ptime & time)
8282
return stream.str();
8383
}
8484

85-
//cppcheck-suppress unusedFunction
8685
wstring StringToWString(const string & s)
8786
{
8887
wstring wsTmp(s.begin(), s.end());
8988
return wsTmp;
9089
}
9190

92-
//cppcheck-suppress unusedFunction
9391
string WStringToString(const wstring & s)
9492
{
9593
string wsTmp(s.begin(), s.end());

Diff for: src/com_log/Log.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ Log::~Log()
3939
{
4040
}
4141

42-
//cppcheck-suppress unusedFunction
4342
void Log::SetFileName(const string & FileName)
4443
{
4544
mFileName = FileName;
@@ -74,13 +73,11 @@ void Log::ChangeSetting(const LogSetting newSetting)
7473
mLogSetting = newSetting;
7574
}
7675

77-
//cppcheck-suppress unusedFunction
7876
void Log::EchoToConsole(const bool echo)
7977
{
8078
mEcho = echo;
8179
}
8280

83-
//cppcheck-suppress unusedFunction
8481
void Log::WritePanic(const string & Msg)
8582
{
8683
if(mLogSetting >= LogPanic)

Diff for: src/com_sql_client/CppSQLite3.cpp

-14
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ void CppSQLite3Buffer::clear()
152152

153153
}
154154

155-
//cppcheck-suppress unusedFunction
156155
const char* CppSQLite3Buffer::format(const char* szFormat, ...)
157156
{
158157
clear();
@@ -181,14 +180,12 @@ CppSQLite3Binary::~CppSQLite3Binary()
181180
clear();
182181
}
183182

184-
//cppcheck-suppress unusedFunction
185183
void CppSQLite3Binary::setBinary(const unsigned char* pBuf, int nLen)
186184
{
187185
mpBuf = allocBuffer(nLen);
188186
memcpy(mpBuf, pBuf, nLen);
189187
}
190188

191-
//cppcheck-suppress unusedFunction
192189
void CppSQLite3Binary::setEncoded(const unsigned char* pBuf)
193190
{
194191
clear();
@@ -209,7 +206,6 @@ void CppSQLite3Binary::setEncoded(const unsigned char* pBuf)
209206
mbEncoded = true;
210207
}
211208

212-
//cppcheck-suppress unusedFunction
213209
const unsigned char* CppSQLite3Binary::getEncoded()
214210
{
215211
if (!mbEncoded)
@@ -245,7 +241,6 @@ const unsigned char* CppSQLite3Binary::getBinary()
245241
return mpBuf;
246242
}
247243

248-
//cppcheck-suppress unusedFunction
249244
int CppSQLite3Binary::getBinaryLength()
250245
{
251246
getBinary();
@@ -525,7 +520,6 @@ int CppSQLite3Query::fieldIndex(const char* szField)
525520
DONT_DELETE_MSG);
526521
}
527522

528-
//cppcheck-suppress unusedFunction
529523
const char* CppSQLite3Query::fieldName(int nCol)
530524
{
531525
checkVM();
@@ -540,7 +534,6 @@ const char* CppSQLite3Query::fieldName(int nCol)
540534
return sqlite3_column_name(mpVM, nCol);
541535
}
542536

543-
//cppcheck-suppress unusedFunction
544537
const char* CppSQLite3Query::fieldDeclType(int nCol)
545538
{
546539
checkVM();
@@ -708,7 +701,6 @@ int CppSQLite3Table::numFields() const
708701
return mnCols;
709702
}
710703

711-
//cppcheck-suppress unusedFunction
712704
int CppSQLite3Table::numRows() const
713705
{
714706
checkResults();
@@ -860,7 +852,6 @@ const char* CppSQLite3Table::fieldName(int nCol) const
860852
return mpaszResults[nCol];
861853
}
862854

863-
//cppcheck-suppress unusedFunction
864855
void CppSQLite3Table::setRow(int nRow)
865856
{
866857
checkResults();
@@ -1237,7 +1228,6 @@ void CppSQLite3DB::close()
12371228
}
12381229
}
12391230

1240-
//cppcheck-suppress unusedFunction
12411231
CppSQLite3Statement CppSQLite3DB::compileStatement(const char* szSQL)
12421232
{
12431233
checkDB();
@@ -1246,7 +1236,6 @@ CppSQLite3Statement CppSQLite3DB::compileStatement(const char* szSQL)
12461236
return CppSQLite3Statement(mpDB, pVM);
12471237
}
12481238

1249-
//cppcheck-suppress unusedFunction
12501239
bool CppSQLite3DB::tableExists(const char* szTable)
12511240
{
12521241
char szSQL[256];
@@ -1318,7 +1307,6 @@ int CppSQLite3DB::execScalar(const char* szSQL, int nNullValue/*=0*/)
13181307
return q.getIntField(0, nNullValue);
13191308
}
13201309

1321-
//cppcheck-suppress unusedFunction
13221310
CppSQLite3Table CppSQLite3DB::getTable(const char* szSQL) const
13231311
{
13241312
checkDB();
@@ -1341,7 +1329,6 @@ CppSQLite3Table CppSQLite3DB::getTable(const char* szSQL) const
13411329
}
13421330
}
13431331

1344-
//cppcheck-suppress unusedFunction
13451332
sqlite_int64 CppSQLite3DB::lastRowId()
13461333
{
13471334
return sqlite3_last_insert_rowid(mpDB);
@@ -1386,7 +1373,6 @@ sqlite3_stmt* CppSQLite3DB::compile(const char* szSQL)
13861373
return pVM;
13871374
}
13881375

1389-
//cppcheck-suppress unusedFunction
13901376
bool CppSQLite3DB::IsAutoCommitOn()
13911377
{
13921378
checkDB();

0 commit comments

Comments
 (0)