Skip to content

Commit 6027318

Browse files
Remove ambiguous GetCropUrl method on UrlHelper
1 parent f8095be commit 6027318

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/Umbraco.Web/UrlHelperRenderExtensions.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -262,32 +262,6 @@ public static IHtmlString GetCropUrl(this UrlHelper urlHelper,
262262
return htmlEncode ? new HtmlString(HttpUtility.HtmlEncode(url)) : new HtmlString(url);
263263
}
264264

265-
public static IHtmlString GetCropUrl(this UrlHelper urlHelper,
266-
ImageCropperValue imageCropperValue,
267-
string cropAlias,
268-
int? width = null,
269-
int? height = null,
270-
int? quality = null,
271-
ImageCropMode? imageCropMode = null,
272-
ImageCropAnchor? imageCropAnchor = null,
273-
bool preferFocalPoint = false,
274-
bool useCropDimensions = true,
275-
string cacheBusterValue = null,
276-
string furtherOptions = null,
277-
ImageCropRatioMode? ratioMode = null,
278-
bool upScale = true,
279-
bool htmlEncode = true)
280-
{
281-
if (imageCropperValue == null) return EmptyHtmlString;
282-
283-
var imageUrl = imageCropperValue.Src;
284-
var url = imageUrl.GetCropUrl(imageCropperValue, width, height, cropAlias, quality, imageCropMode,
285-
imageCropAnchor, preferFocalPoint, useCropDimensions, cacheBusterValue, furtherOptions, ratioMode,
286-
upScale);
287-
return htmlEncode ? new HtmlString(HttpUtility.HtmlEncode(url)) : new HtmlString(url);
288-
}
289-
290-
291265
#endregion
292266

293267
/// <summary>

0 commit comments

Comments
 (0)