SPARK-2079 [pr edit]remove #define ALLOW_FIXED_PRICE_TRIGGER

This commit is contained in:
John Colvin committed 2019-03-05 20:16:48 -06:00
1 parent 840441a749
commit 388cf92a70
1 file changed
+3 -17
@@ -1,6 +1,4 @@
//#define ALLOW_FIXED_PRICE_TRIGGER
using bts.api;
using bts.api.orderman;
using bts.api.orderman;
using mbts.ui.utility;
using mbts.utils;
using System;
@@ -54,15 +52,9 @@ namespace mbts.spark {
TimeoutSeconds = (uint)(timeout_secs)
};
switch (order_price_case) {
#if ALLOW_FIXED_PRICE_TRIGGER
case OrderpriceOneofCase.Price:
// should already be null, setting it here for clarity
trigger_def.TriggerAction.Payup = null;
trigger_def.TriggerAction.Price = fixed_price;
break;
#else
default: goto case OrderpriceOneofCase.Payup;
#endif
// 'fixed price' is no longer supported (ca. 03/04/2019)
goto case OrderpriceOneofCase.Payup;
case OrderpriceOneofCase.Payup:
trigger_def.TriggerAction.Price = double.NaN;
trigger_def.TriggerAction.Payup = new TriggerPayupPrice {
@@ -89,12 +81,6 @@ namespace mbts.spark {
payup_ticks = pp.PayupTicks;
payup_price_type = pp.PayupPriceType;
}
#if ALLOW_FIXED_PRICE_TRIGGER
else {
order_price_case = OrderpriceOneofCase.Price;
fixed_price = a.Price;
}
#endif
}
}
void validation_callback<T>(T oldval, T newval) => validate();