diff --git a/src/Orchard.Tests/Stubs/StubWebSiteFolder.cs b/src/Orchard.Tests/Stubs/StubWebSiteFolder.cs index c5004699e..701eaf242 100644 --- a/src/Orchard.Tests/Stubs/StubWebSiteFolder.cs +++ b/src/Orchard.Tests/Stubs/StubWebSiteFolder.cs @@ -33,10 +33,6 @@ namespace Orchard.Tests.Stubs { return new Token {IsCurrent = true}; } - public void WhenPathChanges(string path, Action action) { - throw new NotImplementedException(); - } - public class Token : IVolatileToken { public bool IsCurrent { get; set; } } diff --git a/src/Orchard/FileSystems/WebSite/IWebSiteFolder.cs b/src/Orchard/FileSystems/WebSite/IWebSiteFolder.cs index 45f621ede..4e4ad4142 100644 --- a/src/Orchard/FileSystems/WebSite/IWebSiteFolder.cs +++ b/src/Orchard/FileSystems/WebSite/IWebSiteFolder.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using Orchard.Caching; @@ -15,6 +14,5 @@ namespace Orchard.FileSystems.WebSite { void CopyFileTo(string virtualPath, Stream destination); IVolatileToken WhenPathChanges(string virtualPath); - void WhenPathChanges(string virtualPath, Action action); } } \ No newline at end of file diff --git a/src/Orchard/FileSystems/WebSite/WebSiteFolder.cs b/src/Orchard/FileSystems/WebSite/WebSiteFolder.cs index 732ef2e21..791721553 100644 --- a/src/Orchard/FileSystems/WebSite/WebSiteFolder.cs +++ b/src/Orchard/FileSystems/WebSite/WebSiteFolder.cs @@ -51,10 +51,6 @@ namespace Orchard.FileSystems.WebSite { return _virtualPathMonitor.WhenPathChanges(virtualPath); } - public void WhenPathChanges(string virtualPath, Action action) { - _virtualPathMonitor.WhenPathChanges(virtualPath, action); - } - static string Normalize(string virtualPath) { return HostingEnvironment.VirtualPathProvider.GetFile(virtualPath).VirtualPath; }