Commit 2c194443 authored by Dominik Charousset's avatar Dominik Charousset

Remove unused code

parent ac55df8c
......@@ -34,13 +34,6 @@
namespace {
struct tostring_visitor : caf::static_visitor<std::string> {
template <class T>
inline std::string operator()(const T& value) {
return to_string(value);
}
};
class union_type {
public:
friend struct caf::default_sum_type_access<union_type>;
......@@ -59,11 +52,6 @@ public:
destroy();
}
template <class T>
union_type(T x) : union_type() {
*this = x;
}
union_type& operator=(T0 value) {
destroy();
index_ = 0;
......
......@@ -52,16 +52,6 @@ struct seq_num_visitor {
basp_broker_state* state;
};
struct close_visitor {
using result_type = void;
close_visitor(broker* ptr) : b(ptr) { }
template <class T>
result_type operator()(const T& hdl) {
b->close(hdl);
}
broker* b;
};
} // namespace anonymous
const char* basp_broker_state::name = "basp_broker";
......
......@@ -66,21 +66,6 @@ bool operator==(const maybe<T>& x, const T& y) {
return x.val ? x.val == y : true;
}
template <class T>
bool operator==(const T& x, const maybe<T>& y) {
return y.val ? x == y.val : true;
}
template <class T>
bool operator!=(const maybe<T>& x, const T& y) {
return !(x == y);
}
template <class T>
bool operator!=(const T& x, const maybe<T>& y) {
return !(x == y);
}
constexpr uint8_t no_flags = 0;
constexpr uint32_t no_payload = 0;
constexpr uint64_t no_operation_data = 0;
......
......@@ -70,21 +70,6 @@ bool operator==(const maybe<T>& x, const T& y) {
return x.val ? x.val == y : true;
}
template <class T>
bool operator==(const T& x, const maybe<T>& y) {
return y.val ? x == y.val : true;
}
template <class T>
bool operator!=(const maybe<T>& x, const T& y) {
return !(x == y);
}
template <class T>
bool operator!=(const T& x, const maybe<T>& y) {
return !(x == y);
}
constexpr uint8_t no_flags = 0;
constexpr uint32_t no_payload = 0;
constexpr uint64_t no_operation_data = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment