Skip to content

Commit

Permalink
Remove unused ExpectationList#match_but_out_of_order
Browse files Browse the repository at this point in the history
This was added in this commit [1] as part of #633, but was never used. I
suspect it was accidentally left over after I changed my mind and added
the optional `ignoring_order` keyword argument to
`ExpectationList#match`.

[1]: 0800c6f
  • Loading branch information
floehopper committed Nov 13, 2024
1 parent f899c03 commit f2fa991
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/mocha/expectation_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ def match(invocation, ignoring_order: false)
matching_expectations(invocation, ignoring_order: ignoring_order).first
end

def match_but_out_of_order(invocation)
matching_expectations(invocation).first
end

def match_allowing_invocation(invocation)
matching_expectations(invocation).detect(&:invocations_allowed?)
end
Expand Down

0 comments on commit f2fa991

Please sign in to comment.