removes unused code

This commit is contained in:
Shannon
2019-01-29 21:27:22 +11:00
parent c272c2ad3b
commit 9bcb2bfb38

View File

@@ -21,17 +21,6 @@ namespace Umbraco.Web
/// </summary>
public static class UrlHelperExtensions
{
/// <summary>
/// Returns the base path (not including the 'action') of the MVC controller "ExamineManagementController"
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
public static string GetExamineManagementServicePath(this UrlHelper url)
{
// TODO: Possibly remove this method, I think it's unused...
var result = url.GetUmbracoApiService<ExamineManagementController>("GetIndexerDetails");
return result.TrimEnd("GetIndexerDetails").EnsureEndsWith('/');
}
/// <summary>
/// Return the Url for a Web Api service
@@ -47,19 +36,6 @@ namespace Umbraco.Web
return url.GetUmbracoApiService(actionName, typeof(T), routeVals);
}
/// <summary>
/// Return the Base Url (not including the action) for a Web Api service
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="url"></param>
/// <param name="actionName"></param>
/// <returns></returns>
public static string GetUmbracoApiServiceBaseUrl<T>(this UrlHelper url, string actionName)
where T : UmbracoApiController
{
return url.GetUmbracoApiService<T>(actionName).TrimEnd(actionName);
}
public static string GetUmbracoApiServiceBaseUrl<T>(this UrlHelper url, Expression<Func<T, object>> methodSelector)
where T : UmbracoApiController
{
@@ -112,19 +88,6 @@ namespace Umbraco.Web
return url.GetUmbracoApiService(actionName, ControllerExtensions.GetControllerName(apiControllerType), area, routeVals);
}
/// <summary>
/// Return the Url for a Web Api service
/// </summary>
/// <param name="url"></param>
/// <param name="actionName"></param>
/// <param name="controllerName"></param>
/// <param name="routeVals"></param>
/// <returns></returns>
public static string GetUmbracoApiService(this UrlHelper url, string actionName, string controllerName, RouteValueDictionary routeVals = null)
{
return url.GetUmbracoApiService(actionName, controllerName, "", routeVals);
}
/// <summary>
/// Return the Url for a Web Api service
/// </summary>