Skip to content

Commit

Permalink
Remove unused private method (#21268)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouv authored Aug 3, 2017
1 parent 4535642 commit aeeb2a3
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1822,24 +1822,6 @@ private BoundExpression RewriteNullableNullEquality(
return result;
}

private static MethodSymbol GetTruthOperator(TypeSymbol type, bool negative)
{
string name = negative ? WellKnownMemberNames.FalseOperatorName : WellKnownMemberNames.TrueOperatorName;
var operators = ((NamedTypeSymbol)type.StrippedType()).GetOperators(name);
Debug.Assert(!operators.IsEmpty);
for (int i = 0; i < operators.Length; ++i)
{
Debug.Assert(operators[i].ParameterCount == 1);
if (operators[i].ParameterTypes[0] == type)
{
return operators[i];
}
}

Debug.Assert(false, "How did we bind a user-defined logical operator or dynamic logical Boolean operator without operator false or operator true?");
return null;
}

private BoundExpression RewriteStringEquality(BoundBinaryOperator oldNode, SyntaxNode syntax, BinaryOperatorKind operatorKind, BoundExpression loweredLeft, BoundExpression loweredRight, TypeSymbol type, SpecialMember member)
{
if (oldNode != null && (loweredLeft.ConstantValue == ConstantValue.Null || loweredRight.ConstantValue == ConstantValue.Null))
Expand Down

0 comments on commit aeeb2a3

Please sign in to comment.