Removing dependency on "Dependencies.xml"

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2011-03-22 16:41:04 -07:00
parent 28e8eb826c
commit e73a39945b
3 changed files with 2 additions and 12 deletions

View File

@@ -24,9 +24,7 @@ namespace Orchard.FileSystems.Dependencies {
public Localizer T { get; set; }
private string PersistencePath {
get {
return _appDataFolder.Combine(BasePath, FileName);
}
get { return _appDataFolder.Combine(BasePath, FileName); }
}
public DependencyDescriptor GetDescriptor(string moduleName) {
@@ -55,10 +53,6 @@ namespace Orchard.FileSystems.Dependencies {
}
}
public IEnumerable<string> GetViewCompilationDependencies() {
yield return _appDataFolder.GetVirtualPath(this.PersistencePath);
}
private IEnumerable<DependencyDescriptor> ReadDependencies(string persistancePath) {
Func<string, XName> ns = (name => XName.Get(name));
Func<XElement, string, string> elem = (e, name) => e.Element(ns(name)).Value;

View File

@@ -23,6 +23,5 @@ namespace Orchard.FileSystems.Dependencies {
DependencyDescriptor GetDescriptor(string moduleName);
IEnumerable<DependencyDescriptor> LoadDescriptors();
void StoreDescriptors(IEnumerable<DependencyDescriptor> dependencyDescriptors);
IEnumerable<string> GetViewCompilationDependencies();
}
}

View File

@@ -84,14 +84,11 @@ namespace Orchard.Mvc.ViewEngines.Razor {
provider.AssemblyBuilder.AddAssemblyReference(assembly);
}
}
foreach (var virtualDependency in entry.dependencies) {
provider.AddVirtualPathDependency(virtualDependency);
}
}
foreach (var virtualDependency in _dependenciesFolder.GetViewCompilationDependencies()) {
provider.AddVirtualPathDependency(virtualDependency);
}
}
private DependencyDescriptor GetModuleDependencyDescriptor(string virtualPath) {