mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-18 19:51:45 +08:00
Remove unused method
--HG-- branch : dev
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using Orchard.Caching;
|
||||||
using Orchard.Caching;
|
|
||||||
using Orchard.FileSystems.VirtualPath;
|
using Orchard.FileSystems.VirtualPath;
|
||||||
|
|
||||||
namespace Orchard.Tests.Stubs {
|
namespace Orchard.Tests.Stubs {
|
||||||
@@ -10,9 +9,5 @@ namespace Orchard.Tests.Stubs {
|
|||||||
public IVolatileToken WhenPathChanges(string virtualPath) {
|
public IVolatileToken WhenPathChanges(string virtualPath) {
|
||||||
return new Token();
|
return new Token();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void WhenPathChanges(string virtualPath, Action action) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,10 +24,6 @@ namespace Orchard.FileSystems.VirtualPath {
|
|||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void WhenPathChanges(string virtualPath, Action action) {
|
|
||||||
BindSignal(virtualPath, (key, value, reason) => action());
|
|
||||||
}
|
|
||||||
|
|
||||||
private Token BindToken(string virtualPath) {
|
private Token BindToken(string virtualPath) {
|
||||||
lock (_tokens) {
|
lock (_tokens) {
|
||||||
Weak<Token> weak;
|
Weak<Token> weak;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using Orchard.Caching;
|
||||||
using Orchard.Caching;
|
|
||||||
|
|
||||||
namespace Orchard.FileSystems.VirtualPath {
|
namespace Orchard.FileSystems.VirtualPath {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -7,9 +6,5 @@ namespace Orchard.FileSystems.VirtualPath {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IVirtualPathMonitor : IVolatileProvider {
|
public interface IVirtualPathMonitor : IVolatileProvider {
|
||||||
IVolatileToken WhenPathChanges(string virtualPath);
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user