Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused private method #21268

Merged
merged 1 commit into from
Aug 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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