diff options
author | Rory& <root@rory.gay> | 2024-05-30 19:07:09 +0000 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-05-30 19:07:09 +0000 |
commit | cf90f02e1f9c9f7d037976cace2b9c49119c741c (patch) | |
tree | 3925bd8d689c3f330c217b0f867ba8a241d893e7 /LibMatrix/Extensions/EnumerableExtensions.cs | |
parent | Rename legacy event types (diff) | |
download | LibMatrix-cf90f02e1f9c9f7d037976cace2b9c49119c741c.tar.xz |
Start implementing new event system
Diffstat (limited to '')
-rw-r--r-- | LibMatrix/Extensions/EnumerableExtensions.cs | 2 |
1 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 |