From 38ad2860e59b613afa7981b7427493803171835e Mon Sep 17 00:00:00 2001 From: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com> Date: Tue, 18 Apr 2023 09:03:18 +0200 Subject: [PATCH] Remove unused code from extension method --- src/Umbraco.Cms.Persistence.EFCore/Compose/EFCoreComposer.cs | 2 +- .../Extensions/UmbracoEFCoreServiceCollectionExtensions.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Cms.Persistence.EFCore/Compose/EFCoreComposer.cs b/src/Umbraco.Cms.Persistence.EFCore/Compose/EFCoreComposer.cs index bd826f8003a0..12ee4b0585c6 100644 --- a/src/Umbraco.Cms.Persistence.EFCore/Compose/EFCoreComposer.cs +++ b/src/Umbraco.Cms.Persistence.EFCore/Compose/EFCoreComposer.cs @@ -6,5 +6,5 @@ namespace Umbraco.Cms.Persistence.EFCore.Compose; public class EFCoreComposer : IComposer { - public void Compose(IUmbracoBuilder builder) => builder.Services.AddUmbracoEFCore(builder.Config); + public void Compose(IUmbracoBuilder builder) => builder.Services.AddUmbracoEFCore(); } diff --git a/src/Umbraco.Cms.Persistence.EFCore/Extensions/UmbracoEFCoreServiceCollectionExtensions.cs b/src/Umbraco.Cms.Persistence.EFCore/Extensions/UmbracoEFCoreServiceCollectionExtensions.cs index fb0a674a820c..b05d6f3d79e2 100644 --- a/src/Umbraco.Cms.Persistence.EFCore/Extensions/UmbracoEFCoreServiceCollectionExtensions.cs +++ b/src/Umbraco.Cms.Persistence.EFCore/Extensions/UmbracoEFCoreServiceCollectionExtensions.cs @@ -9,10 +9,8 @@ namespace Umbraco.Extensions; public static class UmbracoEFCoreServiceCollectionExtensions { - public static IServiceCollection AddUmbracoEFCore(this IServiceCollection services, IConfiguration configuration, Action? optionsAction = null) + public static IServiceCollection AddUmbracoEFCore(this IServiceCollection services) { - - // services.AddUnique(); services.AddUnique(); return services; }