From 53dc83ca16d00b7196aba40540ccff28d7682a5c Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 10 Apr 2018 13:49:09 +1000 Subject: [PATCH] removes unused method --- src/Umbraco.Web/Editors/ContentController.cs | 23 +------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/Umbraco.Web/Editors/ContentController.cs b/src/Umbraco.Web/Editors/ContentController.cs index 1e6d0867d4..0bcb218fb0 100644 --- a/src/Umbraco.Web/Editors/ContentController.cs +++ b/src/Umbraco.Web/Editors/ContentController.cs @@ -1160,27 +1160,6 @@ namespace Umbraco.Web.Editors return display; } - - /// - /// Used to map an instance to a and ensuring a language is present if required - /// - /// - /// - /// - private ContentItemBasic MapToBasic(IContent content, int? languageId = null) - { - //a languageId must exist in the mapping context if this content item has any property type that can be varied by language - //otherwise the property validation will fail since it's expecting to be get/set with a language ID. If a languageId is not explicitly - //sent up, then it means that the user is editing the default variant language. - if (!languageId.HasValue && content.HasLanguageVariantPropertyType()) - { - languageId = Services.LocalizationService.GetDefaultVariantLanguage().Id; - } - - var basic = ContextMapper.Map>(content, UmbracoContext, - new Dictionary { { ContextMapper.LanguageKey, languageId } }); - - return basic; - } + } }