diff options
Diffstat (limited to '')
-rw-r--r-- | LibMatrix/Extensions/EnumerableExtensions.cs | 2 | ||||
-rw-r--r-- | Utilities/LibMatrix.DebugDataValidationApi/JsonElementExtensions.cs (renamed from LibMatrix/Extensions/JsonElementExtensions.cs) | 0 |
2 files changed, 2 insertions, 0 deletions
diff --git a/LibMatrix/Extensions/EnumerableExtensions.cs b/LibMatrix/Extensions/EnumerableExtensions.cs index b5193ab..7a810ac 100644 --- a/LibMatrix/Extensions/EnumerableExtensions.cs +++ b/LibMatrix/Extensions/EnumerableExtensions.cs @@ -1,6 +1,7 @@ namespace LibMatrix.Extensions; public static class EnumerableExtensions { +#if !DISABLE_LEGACY_EVENTS public static void MergeStateEventLists(this IList<LegacyMatrixEvent> oldState, IList<LegacyMatrixEvent> newState) { foreach (var stateEvent in newState) { var old = oldState.FirstOrDefault(x => x.Type == stateEvent.Type && x.StateKey == stateEvent.StateKey); @@ -26,4 +27,5 @@ public static class EnumerableExtensions { oldState.Add(stateEvent); } } +#endif } \ No newline at end of file diff --git a/LibMatrix/Extensions/JsonElementExtensions.cs b/Utilities/LibMatrix.DebugDataValidationApi/JsonElementExtensions.cs index a2faddc..a2faddc 100644 --- a/LibMatrix/Extensions/JsonElementExtensions.cs +++ b/Utilities/LibMatrix.DebugDataValidationApi/JsonElementExtensions.cs |