From 11e42c0a563e91b1e2a3222c50dc602e2f5c0ffb Mon Sep 17 00:00:00 2001 From: Claus Date: Tue, 8 Sep 2020 10:36:35 +0200 Subject: [PATCH] removing duplicated extension methods that could encourage bad practice when used in the wrong way. --- src/Umbraco.Web/BlockListTemplateExtensions.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Umbraco.Web/BlockListTemplateExtensions.cs b/src/Umbraco.Web/BlockListTemplateExtensions.cs index 1ccf900aeb..6e105a24d6 100644 --- a/src/Umbraco.Web/BlockListTemplateExtensions.cs +++ b/src/Umbraco.Web/BlockListTemplateExtensions.cs @@ -1,5 +1,4 @@ using System; -using System.Linq; using System.Web.Mvc; using System.Web.Mvc.Html; using Umbraco.Core.Models.Blocks; @@ -35,11 +34,5 @@ namespace Umbraco.Web return GetBlockListHtml(html, prop?.GetValue() as BlockListModel, template); } - - public static IHtmlString GetBlockListHtml(this IPublishedProperty property, HtmlHelper html, string template = DefaultTemplate) => GetBlockListHtml(html, property?.GetValue() as BlockListModel, template); - - public static IHtmlString GetBlockListHtml(this IPublishedContent contentItem, HtmlHelper html, string propertyAlias) => GetBlockListHtml(html, contentItem, propertyAlias, DefaultTemplate); - - public static IHtmlString GetBlockListHtml(this IPublishedContent contentItem, HtmlHelper html, string propertyAlias, string template) => GetBlockListHtml(html, contentItem, propertyAlias, template); } }