diff --git a/src/Orchard/Controllers/HomeController.cs b/src/Orchard/Controllers/HomeController.cs deleted file mode 100644 index b6b9a93e8..000000000 --- a/src/Orchard/Controllers/HomeController.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.Web.Mvc; -using Orchard.Mvc.ViewModels; - -namespace Orchard.Controllers { - [HandleError] - public class HomeController : Controller { - public ActionResult Index() { - ViewData["Message"] = "Welcome to ASP.NET MVC!"; - - return View(new BaseViewModel()); - } - - public ActionResult About() { - - return View(new BaseViewModel()); - } - } -} \ No newline at end of file diff --git a/src/Orchard/Environment/ShellBuilders/SafeModeShellContainerFactory.cs b/src/Orchard/Environment/ShellBuilders/SafeModeShellContainerFactory.cs index 2482e7c0c..f00f63d2e 100644 --- a/src/Orchard/Environment/ShellBuilders/SafeModeShellContainerFactory.cs +++ b/src/Orchard/Environment/ShellBuilders/SafeModeShellContainerFactory.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Web; -using System.Web.Mvc; using System.Web.Routing; using Autofac; using Orchard.ContentManagement; diff --git a/src/Orchard/Mvc/MvcModule.cs b/src/Orchard/Mvc/MvcModule.cs index 27832f80d..dcfecdd29 100644 --- a/src/Orchard/Mvc/MvcModule.cs +++ b/src/Orchard/Mvc/MvcModule.cs @@ -5,8 +5,6 @@ using System.Web.Routing; using Autofac; using Autofac.Builder; using Autofac.Integration.Web.Mvc; -using Orchard.Controllers; -using Orchard.Environment; using Orchard.Mvc.Filters; using Orchard.Extensions; @@ -20,7 +18,7 @@ namespace Orchard.Mvc { protected override void Load(ContainerBuilder moduleBuilder) { var extensions = _extensionManager.ActiveExtensions(); - var assemblies = extensions.Select(x => x.Assembly).Concat(new[] { typeof(HomeController).Assembly }); + var assemblies = extensions.Select(x => x.Assembly).Concat(new[] { typeof(MvcModule).Assembly }); var module = new AutofacControllerModule(assemblies.ToArray()) { ActionInvokerType = typeof(FilterResolvingActionInvoker), diff --git a/src/Orchard/Orchard.csproj b/src/Orchard/Orchard.csproj index 735eb6a3a..94cc0c1fe 100644 --- a/src/Orchard/Orchard.csproj +++ b/src/Orchard/Orchard.csproj @@ -216,7 +216,6 @@ -