From 550166c41b0b35f65ef7a7ab612caae2f5173ad9 Mon Sep 17 00:00:00 2001 From: Jeavon Leopold Date: Mon, 24 Mar 2014 15:49:04 +0000 Subject: [PATCH] Removing HasPropertyAndValueAndCrop method as it's no longer needed --- src/Umbraco.Web/ImageCropperBaseExtensions.cs | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/src/Umbraco.Web/ImageCropperBaseExtensions.cs b/src/Umbraco.Web/ImageCropperBaseExtensions.cs index fed0a64d4c..ed2e661b33 100644 --- a/src/Umbraco.Web/ImageCropperBaseExtensions.cs +++ b/src/Umbraco.Web/ImageCropperBaseExtensions.cs @@ -70,35 +70,5 @@ namespace Umbraco.Web return dataset.FirstOrDefault(x => x.Alias.ToLowerInvariant() == cropAlias.ToLowerInvariant()); } - - - - internal static bool HasPropertyAndValueAndCrop(this IPublishedContent publishedContent, string propertyAlias, string cropAlias) - { - if (propertyAlias != null && publishedContent.HasProperty(propertyAlias) - && publishedContent.HasValue(propertyAlias)) - { - var propertyAliasValue = publishedContent.GetPropertyValue(propertyAlias); - if (propertyAliasValue.DetectIsJson() && propertyAliasValue.Length <= 2) - { - return false; - } - var allTheCrops = propertyAliasValue.SerializeToCropDataSet(); - if (allTheCrops != null && allTheCrops.Crops.Any()) - { - var crop = cropAlias != null - ? allTheCrops.Crops.First(x => x.Alias.ToLowerInvariant() == cropAlias.ToLowerInvariant()) - - : allTheCrops.Crops.First(); - if (crop != null) - { - return true; - } - } - return false; - } - return false; - } - } }