mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Fixing warnings
--HG-- branch : perf
This commit is contained in:
@@ -11,15 +11,10 @@ using Orchard.Modules.ViewModels;
|
|||||||
using Orchard.UI.Notify;
|
using Orchard.UI.Notify;
|
||||||
|
|
||||||
namespace Orchard.Modules.Services {
|
namespace Orchard.Modules.Services {
|
||||||
[Obsolete]
|
|
||||||
public interface IModuleService : IDependency {
|
public interface IModuleService : IDependency {
|
||||||
[Obsolete]
|
|
||||||
void EnableFeatures(IEnumerable<string> featureNames);
|
void EnableFeatures(IEnumerable<string> featureNames);
|
||||||
[Obsolete]
|
|
||||||
void EnableFeatures(IEnumerable<string> featureNames, bool force);
|
void EnableFeatures(IEnumerable<string> featureNames, bool force);
|
||||||
[Obsolete]
|
|
||||||
void DisableFeatures(IEnumerable<string> featureNames);
|
void DisableFeatures(IEnumerable<string> featureNames);
|
||||||
[Obsolete]
|
|
||||||
void DisableFeatures(IEnumerable<string> featureNames, bool force);
|
void DisableFeatures(IEnumerable<string> featureNames, bool force);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -102,22 +102,11 @@ namespace Orchard.Setup {
|
|||||||
|
|
||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
class SafeModeThemeService : IThemeManager {
|
class SafeModeThemeService : IThemeManager {
|
||||||
class SafeModeTheme : FeatureDescriptor {
|
|
||||||
public ContentItem ContentItem { get; set; }
|
|
||||||
public bool Enabled { get; set; }
|
|
||||||
public string ThemeName { get; set; }
|
|
||||||
public string DisplayName { get; set; }
|
|
||||||
public string Tags { get; set; }
|
|
||||||
public string Zones { get; set; }
|
|
||||||
public string BaseTheme { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly ExtensionDescriptor _theme = new ExtensionDescriptor {
|
private readonly ExtensionDescriptor _theme = new ExtensionDescriptor {
|
||||||
Name = "SafeMode",
|
Name = "SafeMode",
|
||||||
DisplayName = "SafeMode",
|
DisplayName = "SafeMode",
|
||||||
};
|
};
|
||||||
|
|
||||||
public ExtensionDescriptor GetThemeByName(string themeName) { return _theme; }
|
|
||||||
public ExtensionDescriptor GetRequestTheme(RequestContext requestContext) { return _theme; }
|
public ExtensionDescriptor GetRequestTheme(RequestContext requestContext) { return _theme; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user