Skip to content

Commit cc0e784

Browse files
committed
CSHARP-5572: Remove unnecessary commented out code
1 parent 684be5c commit cc0e784

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/MongoDB.Driver/Linq/Linq3Implementation/SerializerFinders/SerializerFinderVisitUnary.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,6 @@ static IBsonSerializer GetConvertEnumToEnumSerializer(UnaryExpression expression
193193
throw new ExpressionNotSupportedException(expression, because: "target type is not an enum");
194194
}
195195

196-
// TODO: throwing here breaks client-side projections
197-
// if (sourceSerializer is IHasRepresentationSerializer sourceHasRepresentationSerializer &&
198-
// !SerializationHelper.IsNumericRepresentation(sourceHasRepresentationSerializer.Representation))
199-
// {
200-
// throw new ExpressionNotSupportedException(expression, because: "source enum is not represented as a number");
201-
// }
202-
203196
return EnumSerializer.Create(targetType);
204197
}
205198

0 commit comments

Comments
 (0)