Browse Source

Remove unused class

pull/165/head
Ionite 1 year ago
parent
commit
dcbfb60e81
No known key found for this signature in database
  1. 26
      StabilityMatrix.Avalonia/Models/ILoadableState.cs

26
StabilityMatrix.Avalonia/Models/ILoadableState.cs

@ -1,26 +0,0 @@
using System;
using System.Text.Json;
using System.Text.Json.Nodes;
namespace StabilityMatrix.Avalonia.Models;
public interface ILoadableState<T> : IJsonLoadableState
{
new Type LoadableStateType => typeof(T);
void LoadState(T state);
new void LoadStateFromJsonObject(JsonObject state)
{
state.Deserialize(LoadableStateType);
}
T SaveState();
new JsonObject SaveStateToJsonObject()
{
var node = JsonSerializer.SerializeToNode(SaveState());
return node?.AsObject() ?? throw new
InvalidOperationException("Failed to serialize state to JSON object.");
}
}
Loading…
Cancel
Save