Compare commits

..

No commits in common. "0e7a40a63928ee4e1b141151681eba204c2189b5" and "883236e581ec36dfaa2b28fba9523a691222b5a9" have entirely different histories.

3 changed files with 0 additions and 27 deletions

View File

@ -6,9 +6,5 @@ public interface IStore<T> : IDisposable
public bool Add(T item);
public bool Has(T item);
public bool Remove(T item);
public IEnumerable<T> GetValues();
}

View File

@ -29,9 +29,6 @@ public class LocalStore<T> : IStore<T>
using (FileStream fs = new FileStream(this.filePath, FileMode.OpenOrCreate))
using (StreamWriter writer = new StreamWriter(fs, DefaultEncoding))
{
fs.Seek(0, SeekOrigin.Begin);
fs.SetLength(0);
foreach (T item in this.items)
{
string json = JsonSerializer.Serialize<T>(item);
@ -56,16 +53,6 @@ public class LocalStore<T> : IStore<T>
return true;
}
public bool Has(T item)
{
return this.items.Contains(item);
}
public bool Remove(T item)
{
return this.items.Remove(item);
}
public IEnumerable<T> GetValues()
{
return this.items.ToList();

View File

@ -26,16 +26,6 @@ public class JsonDB<T> : IDisposable
return this.store.Add(item);
}
public bool Has(T item)
{
return this.store.Has(item);
}
public bool Remove(T item)
{
return this.store.Remove(item);
}
public IEnumerable<T> GetValues()
{
return this.store.GetValues();