U4-8222 Remove IMacroEngine - we will only ship with the macro engines we have currently

This commit is contained in:
Shannon
2016-03-22 12:48:59 +01:00
parent f181c3041e
commit 286e43bc10
8 changed files with 3 additions and 327 deletions

View File

@@ -21,13 +21,11 @@ namespace Umbraco.Web.Macros
/// <summary>
/// A macro engine using MVC Partial Views to execute
/// </summary>
public class PartialViewMacroEngine : IMacroEngine
public class PartialViewMacroEngine
{
private readonly Func<HttpContextBase> _getHttpContext;
private readonly Func<UmbracoContext> _getUmbracoContext;
public const string EngineName = "Partial View Macro Engine";
public PartialViewMacroEngine()
{
_getHttpContext = () =>
@@ -56,11 +54,6 @@ namespace Umbraco.Web.Macros
_getUmbracoContext = () => umbracoContext;
}
public string Name
{
get { return EngineName; }
}
//NOTE: We do not return any supported extensions because we don't want the MacroEngineFactory to return this
// macro engine when searching for engines via extension. Those types of engines are reserved for files that are
// stored in the ~/macroScripts folder and each engine must support unique extensions. This is a total Hack until