Remove unused method

--HG--
branch : dev
This commit is contained in:
Renaud Paquay 2010-07-18 13:39:46 -07:00
parent 8db3a546d2
commit 0d2ad658a9
3 changed files with 2 additions and 16 deletions

View File

@ -1,5 +1,4 @@
using System;
using Orchard.Caching;
using Orchard.Caching;
using Orchard.FileSystems.VirtualPath;
namespace Orchard.Tests.Stubs {
@ -10,9 +9,5 @@ namespace Orchard.Tests.Stubs {
public IVolatileToken WhenPathChanges(string virtualPath) {
return new Token();
}
public void WhenPathChanges(string virtualPath, Action action) {
return;
}
}
}

View File

@ -24,10 +24,6 @@ namespace Orchard.FileSystems.VirtualPath {
return token;
}
public void WhenPathChanges(string virtualPath, Action action) {
BindSignal(virtualPath, (key, value, reason) => action());
}
private Token BindToken(string virtualPath) {
lock (_tokens) {
Weak<Token> weak;

View File

@ -1,5 +1,4 @@
using System;
using Orchard.Caching;
using Orchard.Caching;
namespace Orchard.FileSystems.VirtualPath {
/// <summary>
@ -7,9 +6,5 @@ namespace Orchard.FileSystems.VirtualPath {
/// </summary>
public interface IVirtualPathMonitor : IVolatileProvider {
IVolatileToken WhenPathChanges(string virtualPath);
// Temporary until we have a generic mechanism for components
// to synchronize their dependencies through a Context.Monitor()
// interface
void WhenPathChanges(string virtualPath, Action action);
}
}