qjsonrpc: remove dead duplicate-id scan from batch completion


RequestBatchHandler's completion lambda appended the finished
response to m_finished and then scanned the entire list looking for
an entry matching the id it had just completed, falling back to an
"internal error" response if no match was found.

That entry is always the one appended one line earlier in the same
lambda invocation, so the scan could never fail to find it which makes
the "not found" branch was unreachable.

Remove the scan and its dead branch; this has no effect on behavior.

Pick-to: 6.12
Fixes: QTBUG-148493
Change-Id: If87018b022154201c706c71fa4e75ceb80c720e0
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
commit891ee11ead633ee7cffee6673b46ea022eaa6e6e
parente5f8ae5ff8f71235ffefb0ffe2e5d02f4ac1001e
authorSemih Yavuz <semih.yavuz@qt.io>
committerSemih Yavuz <semih.yavuz@qt.io>
commit timeThu, 6 Aug 2026 09:44:03 +0000