From d609dcd3c208f9ea2cd469a429c91d08bbf1049a Mon Sep 17 00:00:00 2001 From: John Colvin Date: Sat, 2 Aug 2025 12:21:28 -0400 Subject: [PATCH] cleanup: Remove unused code --- .../DataStream/TableUpdateDataPacket.cs | 73 ------------------- 1 file changed, 73 deletions(-) delete mode 100644 src/DataStreamSuite/DataStream/TableUpdateDataPacket.cs diff --git a/src/DataStreamSuite/DataStream/TableUpdateDataPacket.cs b/src/DataStreamSuite/DataStream/TableUpdateDataPacket.cs deleted file mode 100644 index d27a23bf4..000000000 --- a/src/DataStreamSuite/DataStream/TableUpdateDataPacket.cs +++ /dev/null @@ -1,73 +0,0 @@ -namespace Bts.DataStream; - -using BCG; - -using bts.api.core; - -using Bts.DataStreamCore; - -using System; -using System.Collections; -using System.Collections.Generic; - - -public class TableUpdateDataPacket : IDataPacket where T : IBlueRow { - readonly TableUpdate table; - readonly IBlueTableSchema schema; - - public TableUpdateDataPacket(TableUpdate table, IBlueTableSchema schema) { - this.table = table; - this.schema = schema; - } - - public IBlueRowCollection newRows { - get { - var rv = new BlueTableImmutable(schema); - return rv; - } - } - - public IBlueRowCollection addedRows => throw new NotImplementedException(); - - public IBlueRowCollection deletedRows => throw new NotImplementedException(); - - class MyRowCollection : IBlueRowCollection { - readonly TableUpdate table; - readonly IEnumerable items; - Lazy> itemList; - - public MyRowCollection(IEnumerable items, IBlueTableSchema schema) { - this.items = items; - this.schema = schema; - itemList = new(() => { - var rv = new SortedList(); - foreach (var item in this.items) { - rv.Add(item.Id(), item); - } - return rv; - }); - } - - public int Count => itemList.Value.Count; - public bool IsSynchronized => false; - public object SyncRoot => this; - - public T this[int id] => itemList.Value[id]; - - public IBlueTableSchema schema { get; } - - public bool containsID(int id) => - itemList.Value.ContainsKey(id); - - public void CopyTo(Array array, int index) { - } - - public IEnumerator GetEnumerator() { - throw new NotImplementedException(); - } - - IEnumerator IEnumerable.GetEnumerator() { - throw new NotImplementedException(); - } - } -}