cleanup: Remove unused code
This commit is contained in:
1 parent
b6961f558a
commit
87722765db
3 files changed
-48
No files matched your search
@@ -1,20 +0,0 @@
|
||||
#pragma once
|
||||
#include "BookLevel.h"
|
||||
#include <array>
|
||||
|
||||
namespace bts::domain {
|
||||
|
||||
class BookSide {
|
||||
public:
|
||||
// compile time size for speed
|
||||
using Container = std::array<BookLevel, 10>;
|
||||
|
||||
std::uint32_t num_populated_levels() const noexcept;
|
||||
bool is_empty() const noexcept;
|
||||
|
||||
private:
|
||||
// compile time size for speed
|
||||
Container levels_;
|
||||
};
|
||||
|
||||
} // namespace bts::domain
|
||||
@@ -1,10 +0,0 @@
|
||||
#include "NewOrder.h"
|
||||
|
||||
namespace bts::domain {
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, const NewOrder &no) noexcept {
|
||||
out << "price: " << no.price << "; qty: " << no.qty << "; " << no.order_def;
|
||||
return out;
|
||||
}
|
||||
|
||||
} // namespace bts::domain
|
||||
@@ -1,18 +0,0 @@
|
||||
#pragma once
|
||||
#include "OrderDefinition.h"
|
||||
#include "domain/price.h"
|
||||
#include "domain/quantity.h"
|
||||
|
||||
namespace bts::domain {
|
||||
|
||||
// Sent once per order, when the order is first launched (launching an order,
|
||||
// placing, firing, sending all mean the same)
|
||||
struct NewOrder {
|
||||
OrderDefinition order_def;
|
||||
domain::Price price;
|
||||
domain::Quantity qty;
|
||||
};
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, const NewOrder &no) noexcept;
|
||||
|
||||
} // namespace bts::domain
|
||||
Reference in new issue
Block a user