From 32a38b3b5a23a3181f36715dfa2bfd7fc98e5fae Mon Sep 17 00:00:00 2001 From: John Colvin Date: Wed, 5 Oct 2022 12:35:05 -0400 Subject: [PATCH] refactor: Remove unused code --- .../spark/Modules/Trading/Ladder/VM/LadderVM.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/client/spark/Modules/Trading/Ladder/VM/LadderVM.cs b/src/client/spark/Modules/Trading/Ladder/VM/LadderVM.cs index 107d3c189..3f92dc8da 100644 --- a/src/client/spark/Modules/Trading/Ladder/VM/LadderVM.cs +++ b/src/client/spark/Modules/Trading/Ladder/VM/LadderVM.cs @@ -96,7 +96,6 @@ namespace mbts.spark { ulong _misc_time = 0; ulong _last_trade_time = 0; IReadOnlyDictionary _cache = DictionaryHelper.empty(); - IReadOnlyDictionary _security_map = DictionaryHelper.empty(); ImmutableDictionary _favorite_algo_metadata_map = ImmutableDictionary.Empty; ContractSpecificationImmutable? _spec; @@ -254,7 +253,6 @@ namespace mbts.spark { settings.OnDispatcher().Subscribe(settings_observer), get_order_properties_editor_hooks(), bus.subscribe(SparkTags.LogActivity).OnDispatcher().Subscribe(status_update), - bus.subscribe(SparkTags.SecuritiesTag).OnDispatcher().Subscribe(on_security_map), model.greeks.OnDispatcher().Subscribe(g => { _theo.set(g.normalized_theo); _delta.set(g.delta); @@ -344,10 +342,6 @@ namespace mbts.spark { RaisePropertyChanged(nameof(position_display_text)); })); } - - void on_security_map(IReadOnlyDictionary security_map) { - _security_map = security_map; - } } public static LadderVM create( @@ -886,12 +880,5 @@ namespace mbts.spark { _update_header(); on_tick?.Invoke(); } - - SecurityMD? _find_sec_md(uint sec_key) { - if (_security_map.TryGetValue(sec_key, out var sec_md)) { - return sec_md; - } - return null; - } } }