提交 0089b887 编写于 作者: C Cyrus Najmabadi

Delete unused functions

上级 da5bd690
......@@ -22,27 +22,6 @@ internal static class TypeStyleHelper
public static bool IsBuiltInType(ITypeSymbol type)
=> type?.IsSpecialType() == true;
#if false
public static bool IsImplicitStylePreferred(
OptionSet optionSet, bool isBuiltInTypeContext, bool isTypeApparentContext)
{
return IsImplicitStylePreferred(
GetCurrentTypeStylePreferences(optionSet),
isBuiltInTypeContext,
isTypeApparentContext);
}
private static bool IsImplicitStylePreferred(
UseVarPreference stylePreferences, bool isBuiltInTypeContext, bool isTypeApparentContext)
{
return isBuiltInTypeContext
? stylePreferences.HasFlag(UseVarPreference.ForBuiltInTypes)
: isTypeApparentContext
? stylePreferences.HasFlag(UseVarPreference.WhenTypeIsApparent)
: stylePreferences.HasFlag(UseVarPreference.Elsewhere);
}
#endif
/// <summary>
/// Analyzes if type information is obvious to the reader by simply looking at the assignment expression.
/// </summary>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册