diff --git a/src/Umbraco.Web/UmbracoApplication.cs b/src/Umbraco.Web/UmbracoApplication.cs index 47160eb695..6561c6f5ab 100644 --- a/src/Umbraco.Web/UmbracoApplication.cs +++ b/src/Umbraco.Web/UmbracoApplication.cs @@ -8,30 +8,11 @@ using System.Web.Hosting; using System.Web.Mvc; using Umbraco.Core; using Umbraco.Core.Logging; -using Umbraco.Web.Mvc; using Umbraco.Web.Routing; using umbraco.businesslogic; namespace Umbraco.Web { - public class CustomRenderController : RenderMvcController - { - public override ActionResult Index(Models.RenderModel model) - { - HttpContext.Response.ContentType = "text/plain"; - return base.Index(model); - } - } - - public class CustomApplicationEventHandler : ApplicationEventHandler - { - protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) - { - DefaultRenderMvcControllerResolver.Current.SetDefaultControllerType(typeof(CustomRenderController)); - base.ApplicationStarting(umbracoApplication, applicationContext); - } - } - /// /// The Umbraco global.asax class ///