mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-18 11:35:34 +02:00
Remove unused private function in TestResult class
This commit is contained in:
parent
48112c8b62
commit
a7d0ffc717
@ -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;
|
||||
|
@ -97,7 +97,6 @@ public:
|
||||
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user