Commit 90e338f3 authored by Dominik Charousset's avatar Dominik Charousset

Remove unused state from stream<T>

parent ea00fd7f
...@@ -45,17 +45,7 @@ public: ...@@ -45,17 +45,7 @@ public:
/// Convenience constructor for returning the result of `self->new_stream` /// Convenience constructor for returning the result of `self->new_stream`
/// and similar functions. /// and similar functions.
explicit stream(stream_slot id = 0, stream_manager_ptr sptr = nullptr) explicit stream(stream_slot id = 0) : slot_(id) {
: slot_(id),
ptr_(std::move(sptr)) {
// nop
}
/// Convenience constructor for returning the result of `self->new_stream`
/// and similar functions.
stream(stream other, stream_manager_ptr sptr)
: slot_(std::move(other.slot_)),
ptr_(std::move(sptr)) {
// nop // nop
} }
...@@ -66,16 +56,6 @@ public: ...@@ -66,16 +56,6 @@ public:
return slot_; return slot_;
} }
/// Returns the handler assigned to this stream on this actor.
inline stream_manager_ptr& ptr() noexcept {
return ptr_;
}
/// Returns the handler assigned to this stream on this actor.
inline const stream_manager_ptr& ptr() const noexcept {
return ptr_;
}
// -- serialization support -------------------------------------------------- // -- serialization support --------------------------------------------------
template <class Inspector> template <class Inspector>
...@@ -87,7 +67,6 @@ private: ...@@ -87,7 +67,6 @@ private:
// -- member variables ------------------------------------------------------- // -- member variables -------------------------------------------------------
stream_slot slot_; stream_slot slot_;
stream_manager_ptr ptr_;
}; };
} // namespace caf } // namespace caf
......
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