about summary refs log tree commit diff
path: root/LibMatrix/Extensions/EnumerableExtensions.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-05-30 19:07:09 +0000
committerRory& <root@rory.gay>2024-05-30 19:07:09 +0000
commitcf90f02e1f9c9f7d037976cace2b9c49119c741c (patch)
tree3925bd8d689c3f330c217b0f867ba8a241d893e7 /LibMatrix/Extensions/EnumerableExtensions.cs
parentRename legacy event types (diff)
downloadLibMatrix-cf90f02e1f9c9f7d037976cace2b9c49119c741c.tar.xz
Start implementing new event system
Diffstat (limited to '')
-rw-r--r--LibMatrix/Extensions/EnumerableExtensions.cs2
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