Skip to content

Commit ad5942c

Browse files
committed
Removed MockExpectedCallsList methods that are no longer used.
1 parent 8fbac34 commit ad5942c

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

include/CppUTestExt/MockExpectedCallsList.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ class MockExpectedCallsList
4343
virtual int amountOfExpectationsFor(const SimpleString& name) const;
4444
virtual int amountOfUnfulfilledExpectations() const;
4545
virtual bool hasUnfulfilledExpectations() const;
46-
virtual bool hasFulfilledExpectations() const;
47-
virtual bool hasFulfilledExpectationsWithoutIgnoredParameters() const;
4846
virtual bool hasUnfulfilledExpectationsBecauseOfMissingParameters() const;
4947
virtual bool hasExpectationWithName(const SimpleString& name) const;
5048
virtual bool hasCallsOutOfOrder() const;

src/CppUTestExt/MockExpectedCallsList.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,6 @@ int MockExpectedCallsList::amountOfUnfulfilledExpectations() const
8181
return count;
8282
}
8383

84-
bool MockExpectedCallsList::hasFulfilledExpectations() const
85-
{
86-
return (size() - amountOfUnfulfilledExpectations()) != 0;
87-
}
88-
89-
bool MockExpectedCallsList::hasFulfilledExpectationsWithoutIgnoredParameters() const
90-
{
91-
for (MockExpectedCallsListNode* p = head_; p; p = p->next_)
92-
if (p->expectedCall_->isFulfilledWithoutIgnoredParameters())
93-
return true;
94-
return false;
95-
}
96-
9784
bool MockExpectedCallsList::hasUnfulfilledExpectations() const
9885
{
9986
return amountOfUnfulfilledExpectations() != 0;

tests/CppUTestExt/ExpectedFunctionsListTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ TEST_GROUP(MockExpectedCallsList)
6363
TEST(MockExpectedCallsList, emptyList)
6464
{
6565
CHECK(! list->hasUnfulfilledExpectations());
66-
CHECK(! list->hasFulfilledExpectations());
66+
CHECK(list->size() == list->amountOfUnfulfilledExpectations());
6767
LONGS_EQUAL(0, list->size());
6868
}
6969

0 commit comments

Comments
 (0)