summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/sbe/vm/arith.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/sbe/vm/arith.cpp')
-rw-r--r--src/mongo/db/exec/sbe/vm/arith.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mongo/db/exec/sbe/vm/arith.cpp b/src/mongo/db/exec/sbe/vm/arith.cpp
index a325d31f676..1386ac832ab 100644
--- a/src/mongo/db/exec/sbe/vm/arith.cpp
+++ b/src/mongo/db/exec/sbe/vm/arith.cpp
@@ -557,26 +557,6 @@ FastTuple<bool, value::TypeTags, value::Value> ByteCode::genericMod(value::TypeT
return {false, value::TypeTags::Nothing, 0};
}
-FastTuple<bool, value::TypeTags, value::Value> ByteCode::genericNumConvert(
- value::TypeTags lhsTag, value::Value lhsValue, value::TypeTags targetTag) {
- if (value::isNumber(lhsTag)) {
- switch (lhsTag) {
- case value::TypeTags::NumberInt32:
- return numericConvLossless<int32_t>(value::bitcastTo<int32_t>(lhsValue), targetTag);
- case value::TypeTags::NumberInt64:
- return numericConvLossless<int64_t>(value::bitcastTo<int64_t>(lhsValue), targetTag);
- case value::TypeTags::NumberDouble:
- return numericConvLossless<double>(value::bitcastTo<double>(lhsValue), targetTag);
- case value::TypeTags::NumberDecimal:
- return numericConvLossless<Decimal128>(value::bitcastTo<Decimal128>(lhsValue),
- targetTag);
- default:
- MONGO_UNREACHABLE
- }
- }
- return {false, value::TypeTags::Nothing, 0};
-}
-
FastTuple<bool, value::TypeTags, value::Value> ByteCode::genericAbs(value::TypeTags operandTag,
value::Value operandValue) {
switch (operandTag) {