From f2fa99197f35e2d2ce9554db63f6964057e29ce0 Mon Sep 17 00:00:00 2001 From: James Mead Date: Wed, 13 Nov 2024 13:26:35 +0000 Subject: [PATCH] Remove unused ExpectationList#match_but_out_of_order 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]: https://github.com/freerange/mocha/commit/0800c6ffadb3c08583b628a827fc0306552c28f4 --- lib/mocha/expectation_list.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/mocha/expectation_list.rb b/lib/mocha/expectation_list.rb index 74c720da4..ba521b629 100644 --- a/lib/mocha/expectation_list.rb +++ b/lib/mocha/expectation_list.rb @@ -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