From 385b66b95adfca0e0c08b864fa385bec98cda59a Mon Sep 17 00:00:00 2001 From: bruno-f-cruz <7049351+bruno-f-cruz@users.noreply.github.com> Date: Wed, 22 May 2024 16:39:41 -0700 Subject: [PATCH] Remove legacy operators --- src/Extensions/ContainsKey.cs | 24 --------- src/Extensions/SinkSoftwareEvent.bonsai | 66 ------------------------- 2 files changed, 90 deletions(-) delete mode 100644 src/Extensions/ContainsKey.cs delete mode 100644 src/Extensions/SinkSoftwareEvent.bonsai diff --git a/src/Extensions/ContainsKey.cs b/src/Extensions/ContainsKey.cs deleted file mode 100644 index 639c9033..00000000 --- a/src/Extensions/ContainsKey.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Bonsai; -using System; -using System.ComponentModel; -using System.Collections.Generic; -using System.Linq; -using System.Reactive.Linq; - -[Combinator] -[Description("Returns true if the dictionary contains the specified key.")] -[WorkflowElementCategory(ElementCategory.Transform)] -public class ContainsKey -{ - private string key; - public string Key - { - get { return key; } - set { key = value; } - } - - public IObservable Process(IObservable> source) - { - return source.Select(value => {return value.ContainsKey(Key);}); - } -} diff --git a/src/Extensions/SinkSoftwareEvent.bonsai b/src/Extensions/SinkSoftwareEvent.bonsai deleted file mode 100644 index ea4a0864..00000000 --- a/src/Extensions/SinkSoftwareEvent.bonsai +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - Source1 - - - - - - SinkSoftwareEvent - - - - Source1 - - - - - - - SoftwareEvent - - - - SoftwareEvent - - - - - - Item2 - - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file