File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -390,11 +390,6 @@ public static bool TryGetInfo(
390
390
391
391
token . ThrowIfCancellationRequested ( ) ;
392
392
393
- // Check whether the property should be required
394
- bool isRequired = GetIsRequiredProperty ( memberSymbol ) ;
395
-
396
- token . ThrowIfCancellationRequested ( ) ;
397
-
398
393
propertyInfo = new PropertyInfo (
399
394
memberSyntax . Kind ( ) ,
400
395
typeNameWithNullabilityAnnotations ,
@@ -1094,20 +1089,6 @@ private static bool TryGetAccessibilityModifiers(
1094
1089
return true ;
1095
1090
}
1096
1091
1097
- /// <summary>
1098
- /// Checks whether an input member is a required property.
1099
- /// </summary>
1100
- /// <param name="memberSymbol">The input <see cref="ISymbol"/> instance to process.</param>
1101
- /// <returns>Whether <paramref name="memberSymbol"/> is a required property.</returns>
1102
- private static bool GetIsRequiredProperty ( ISymbol memberSymbol )
1103
- {
1104
- #if ROSLYN_4_3_1_OR_GREATER
1105
- return memberSymbol is IPropertySymbol { IsRequired : true } ;
1106
- #else
1107
- return false ;
1108
- #endif
1109
- }
1110
-
1111
1092
/// <summary>
1112
1093
/// Gets a <see cref="CompilationUnitSyntax"/> instance with the cached args for property changing notifications.
1113
1094
/// </summary>
You can’t perform that action at this time.
0 commit comments