Skip to content

Commit

Permalink
Remove unused private function in TestResult class
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekto89 committed Jun 2, 2018
1 parent 48112c8 commit a7d0ffc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions src/test_lib_json/jsontest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,6 @@ TestResult& TestResult::popPredicateContext() {

bool TestResult::failed() const { return !failures_.empty(); }

unsigned int TestResult::getAssertionNestingLevel() const {
unsigned int level = 0;
const PredicateContext* lastNode = &rootPredicateNode_;
while (lastNode->next_ != 0) {
lastNode = lastNode->next_;
++level;
}
return level;
}

void TestResult::printFailure(bool printTestName) const {
if (failures_.empty()) {
return;
Expand Down
1 change: 0 additions & 1 deletion src/test_lib_json/jsontest.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ class TestResult {

private:
TestResult& addToLastFailure(const JSONCPP_STRING& message);
unsigned int getAssertionNestingLevel() const;
/// Adds a failure or a predicate context
void addFailureInfo(const char* file,
unsigned int line,
Expand Down

0 comments on commit a7d0ffc

Please sign in to comment.