summaryrefslogtreecommitdiff
path: root/jstests/libs/sbe_util.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/libs/sbe_util.js')
-rw-r--r--jstests/libs/sbe_util.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/jstests/libs/sbe_util.js b/jstests/libs/sbe_util.js
index 8728fabf191..89cf6af7aef 100644
--- a/jstests/libs/sbe_util.js
+++ b/jstests/libs/sbe_util.js
@@ -48,18 +48,3 @@ function checkSBEEnabled(theDB) {
return checkResult;
}
-
-/**
- * Returns whether queries will run with SBE or not. This is distinct from determining whether SBE
- * is enabled because queries run using the legacy read mode will not use SBE even if it is
- * enabled.
- */
-function checkSBECompatible(theDB) {
- if (!checkSBEEnabled(theDB)) {
- return false;
- }
-
- // We can use SBE if we're not using legacy reads, or if we're connected to mongos (which will
- // always use read commands against the shards).
- return theDB.getMongo().readMode() != "legacy" || FixtureHelpers.isMongos(theDB);
-}