Fixed some unused references in Taha's code.

This commit is contained in:
Pedro Pinto committed 2018-05-15 11:58:26 -04:00
1 parent 0a84cb0c81
commit 5da057dc50
2 files changed
+8 -8

No files matched your search

@@ -16,14 +16,14 @@ class ProductLimitTree{
public:
class ProductAccountLimitState{
private:
const int _account_id, _parent_account_id;
const int _account_id; // _parent_account_id;
const bts::api::admin::AccountProductPositionLimitUnit& _limit;
uint32_t _long_pos, _short_pos;
public:
ProductAccountLimitState(int account_id, int parent_account_id, const bts::api::admin::AccountProductPositionLimitUnit& limit)
ProductAccountLimitState(int account_id, int /* parent_account_id */, const bts::api::admin::AccountProductPositionLimitUnit& limit)
:
_account_id(account_id),
_parent_account_id(parent_account_id),
//_parent_account_id(parent_account_id),
_limit(limit),
_long_pos(0),
_short_pos(0)
@@ -120,4 +120,4 @@ public:
return true;
}
};
}}
}}
@@ -17,17 +17,17 @@ class SecurityLimitTree{
public:
class SecurityAccountLimitState{
private:
const int _account_id, _parent_account_id;
const int _account_id; // _parent_account_id;
const bts::api::admin::AccountSecurityPositionLimitUnit& _limit;
const uint32_t _long_pos_limit, _short_pos_limit;
ProductLimitTree::ProductAccountLimitState& _product_limit_state;
uint32_t _long_pos, _short_pos;
public:
SecurityAccountLimitState(int account_id, int parent_account_id, const bts::api::admin::AccountSecurityPositionLimitUnit& limit,
SecurityAccountLimitState(int account_id, int /* parent_account_id */, const bts::api::admin::AccountSecurityPositionLimitUnit& limit,
ProductLimitTree::ProductAccountLimitState& product_limit)
:
_account_id(account_id),
_parent_account_id(parent_account_id),
//_parent_account_id(parent_account_id),
_limit(limit),
_long_pos_limit (limit.long_position_limit()),
_short_pos_limit (limit.short_position_limit()),
@@ -137,4 +137,4 @@ public:
return nullptr;
}
};
}}
}}