Skip to content

Commit 615c92c

Browse files
author
Daniel Marjamäki
committed
testcppcheck: cleanup
1 parent 66be74a commit 615c92c

1 file changed

Lines changed: 0 additions & 43 deletions

File tree

test/testcppcheck.cpp

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,12 @@ class TestCppcheck : public TestFixture
4545

4646
private:
4747

48-
void check(const std::string &data)
49-
{
50-
errout.str("");
51-
output.str("");
52-
CppCheck cppCheck(*this);
53-
cppCheck.addFile("file.cpp", data);
54-
cppCheck.check();
55-
}
56-
5748
void run()
5849
{
5950
//TEST_CASE(getErrorMessages);
6051
}
6152

6253
#if 0
63-
bool argCheck(int argc, const char *argv[])
64-
{
65-
errout.str("");
66-
output.str("");
67-
CppCheck cppCheck(*this);
68-
return cppCheck.parseFromArgs(argc, argv);
69-
}
70-
7154
bool argCheckWithCoutCerrRedirect(int argc, const char * argv[])
7255
{
7356
// redirect cout and cerr
@@ -94,32 +77,6 @@ class TestCppcheck : public TestFixture
9477

9578
return result;
9679
}
97-
98-
bool argCheckWithCheck(int argc, const char *argv[], const std::string &data)
99-
{
100-
errout.str("");
101-
output.str("");
102-
CppCheck cppCheck(*this);
103-
cppCheck.addFile("file.cpp", data);
104-
bool result = cppCheck.parseFromArgs(argc, argv);
105-
if (result)
106-
cppCheck.check();
107-
108-
return result;
109-
}
110-
111-
bool argCheckReturnSettings(int argc, const char *argv[], Settings &settings)
112-
{
113-
errout.str("");
114-
output.str("");
115-
CppCheck cppCheck(*this);
116-
cppCheck.addFile("file.cpp", "void foo(){}");
117-
bool result = cppCheck.parseFromArgs(argc, argv);
118-
if (result)
119-
settings = cppCheck.settings();
120-
121-
return result;
122-
}
12380
#endif
12481

12582
void parseErrorList(const char* xmlData)

0 commit comments

Comments
 (0)