diff --git a/src/D2L.CodeStyle.Analyzers/Attributes.cs b/src/D2L.CodeStyle.Analyzers/Attributes.cs index c873a79a..c12e2bf9 100644 --- a/src/D2L.CodeStyle.Analyzers/Attributes.cs +++ b/src/D2L.CodeStyle.Analyzers/Attributes.cs @@ -5,7 +5,6 @@ namespace D2L.CodeStyle.Analyzers { internal static class Attributes { - internal static readonly RoslynAttribute Singleton = new RoslynAttribute( "D2L.LP.Extensibility.Activation.Domain.SingletonAttribute" ); internal static readonly RoslynAttribute DIFramework = new RoslynAttribute( "D2L.LP.Extensibility.Activation.Domain.DIFrameworkAttribute" ); internal static readonly RoslynAttribute Dependency = new RoslynAttribute( "D2L.LP.Extensibility.Activation.Domain.DependencyAttribute" ); diff --git a/src/D2L.CodeStyle.Analyzers/Extensions/Microsoft.CodeAnalysis.cs b/src/D2L.CodeStyle.Analyzers/Extensions/Microsoft.CodeAnalysis.cs index a3fe0e82..bd078c0f 100644 --- a/src/D2L.CodeStyle.Analyzers/Extensions/Microsoft.CodeAnalysis.cs +++ b/src/D2L.CodeStyle.Analyzers/Extensions/Microsoft.CodeAnalysis.cs @@ -6,19 +6,6 @@ namespace D2L.CodeStyle.Analyzers.Extensions { internal static partial class RoslynExtensions { - public static bool IsTypeMarkedSingleton( this ITypeSymbol symbol ) { - if( Attributes.Singleton.IsDefined( symbol ) ) { - return true; - } - if( symbol.Interfaces.Any( IsTypeMarkedSingleton ) ) { - return true; - } - if( symbol.BaseType != null && IsTypeMarkedSingleton( symbol.BaseType ) ) { - return true; - } - return false; - } - private static readonly SymbolDisplayFormat FullTypeDisplayFormat = new SymbolDisplayFormat( typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameAndContainingTypesAndNamespaces, miscellaneousOptions: SymbolDisplayMiscellaneousOptions.ExpandNullable