SERVER-139402ClosedFixed

Remove unused BSONColumn::contains_forTest and its unit tests

{{BSONColumn::contains_forTest}} ({{src/mongo/bson/column/bsoncolumn.cpp}}) is dead code. SERVER-65804 added it in 2023 to speed up a time-series check, but no production code calls it. SERVER-74926, which would have finished it, was closed as Won't Do. Only seven unit tests call it ({{ContainsScalar*SimpleCompressed}} in {{bsoncolumn_test.cpp}}), so they test dead code. It also has a bug, found by reading the code and not by running a test: after a Simple8b run it advances {{8 * numBlocks}} by

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1026
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.