mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Remove unused method
--HG-- branch : dev
This commit is contained in:
parent
8db3a546d2
commit
0d2ad658a9
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user