mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-18 19:37:35 +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(); }
|
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 {
|
void TestResult::printFailure(bool printTestName) const {
|
||||||
if (failures_.empty()) {
|
if (failures_.empty()) {
|
||||||
return;
|
return;
|
||||||
|
@ -97,7 +97,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
TestResult& addToLastFailure(const JSONCPP_STRING& message);
|
TestResult& addToLastFailure(const JSONCPP_STRING& message);
|
||||||
unsigned int getAssertionNestingLevel() const;
|
|
||||||
/// Adds a failure or a predicate context
|
/// Adds a failure or a predicate context
|
||||||
void addFailureInfo(const char* file,
|
void addFailureInfo(const char* file,
|
||||||
unsigned int line,
|
unsigned int line,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user