Skip to content

Commit b4b1e45

Browse files
committed
Remove unnecessary code
1 parent 777fd6c commit b4b1e45

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservableValidatorValidateAllPropertiesGenerator.Execute.cs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using CommunityToolkit.Mvvm.SourceGenerators.ComponentModel.Models;
99
using CommunityToolkit.Mvvm.SourceGenerators.Extensions;
1010
using CommunityToolkit.Mvvm.SourceGenerators.Helpers;
11-
using CommunityToolkit.Mvvm.SourceGenerators.Messaging.Models;
1211
using Microsoft.CodeAnalysis;
1312
using Microsoft.CodeAnalysis.CSharp;
1413
using Microsoft.CodeAnalysis.CSharp.Syntax;
@@ -86,27 +85,6 @@ public static ValidationInfo GetInfo(INamedTypeSymbol typeSymbol)
8685
propertyNames.ToImmutable());
8786
}
8887

89-
/// <summary>
90-
/// Gets the <see cref="RecipientInfo"/> instance from the given info.
91-
/// </summary>
92-
/// <param name="typeSymbol">The type symbol for the target type being inspected.</param>
93-
/// <param name="interfaceSymbols">The input array of interface type symbols being handled.</param>
94-
/// <returns>A <see cref="RecipientInfo"/> instance for the current type being inspected.</returns>
95-
public static RecipientInfo GetInfo(INamedTypeSymbol typeSymbol, ImmutableArray<INamedTypeSymbol> interfaceSymbols)
96-
{
97-
using ImmutableArrayBuilder<string> names = ImmutableArrayBuilder<string>.Rent();
98-
99-
foreach (INamedTypeSymbol interfaceSymbol in interfaceSymbols)
100-
{
101-
names.Add(interfaceSymbol.TypeArguments[0].GetFullyQualifiedName());
102-
}
103-
104-
return new(
105-
typeSymbol.GetFullyQualifiedMetadataName(),
106-
typeSymbol.GetFullyQualifiedName(),
107-
names.ToImmutable());
108-
}
109-
11088
/// <summary>
11189
/// Gets the head <see cref="CompilationUnitSyntax"/> instance.
11290
/// </summary>

0 commit comments

Comments
 (0)