From 02cc555cc0df0cbb33c0fc308d13214cc2bad5d0 Mon Sep 17 00:00:00 2001 From: Eric Harding Date: Tue, 13 Mar 2018 16:16:02 -0400 Subject: [PATCH] Make SortedTree immutable for now. --- src/client/spark_core/Collections/SortedTree.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/spark_core/Collections/SortedTree.cs b/src/client/spark_core/Collections/SortedTree.cs index 0c12cd7b6..2337e7a77 100644 --- a/src/client/spark_core/Collections/SortedTree.cs +++ b/src/client/spark_core/Collections/SortedTree.cs @@ -27,7 +27,7 @@ namespace bts.collections { // Insert (return: true) or overwrite (return false) a new value // NOTE: you should use AddAll if you are adding multiple values - public bool Insert(T item) { + bool Insert(T item) { var item_id = id(item); if (!_index.TryGetValue(item_id, out Node itemnode)) { // Item is new @@ -57,7 +57,7 @@ namespace bts.collections { } } } - public void Remove(T item) { + void Remove(T item) { var item_id = id(item); if (_index.TryGetValue(item_id, out Node itemnode)) { if (_index.TryGetValue(parent(item), out Node parentnode)) {