diff --git a/Wox.Infrastructure/Storage/JsonStorage.cs b/Wox.Infrastructure/Storage/JsonStorage.cs index 045c7fa697..0726c5bd3a 100644 --- a/Wox.Infrastructure/Storage/JsonStorage.cs +++ b/Wox.Infrastructure/Storage/JsonStorage.cs @@ -30,7 +30,7 @@ namespace Wox.Infrastructure.Storage }; } - public override T Load() + public T Load() { if (File.Exists(FilePath)) { @@ -64,13 +64,13 @@ namespace Wox.Infrastructure.Storage } } - public override void LoadDefault() + public void LoadDefault() { Data = JsonConvert.DeserializeObject("{}", _serializerSettings); Save(); } - public override void Save() + public void Save() { string serialized = JsonConvert.SerializeObject(Data, Formatting.Indented); File.WriteAllText(FilePath, serialized); diff --git a/Wox.Infrastructure/Storage/Storage.cs b/Wox.Infrastructure/Storage/Storage.cs index 0b8302d251..6928d5d833 100644 --- a/Wox.Infrastructure/Storage/Storage.cs +++ b/Wox.Infrastructure/Storage/Storage.cs @@ -13,21 +13,6 @@ namespace Wox.Infrastructure.Storage public string DirectoryPath { get; set; } public string DirectoryName { get; set; } - public virtual T Load() - { - throw new NotImplementedException(); - } - - public virtual void Save() - { - throw new NotImplementedException(); - } - - public virtual void LoadDefault() - { - throw new NotImplementedException(); - } - protected Storage() { DataType = typeof (T);