Commit c5ad7e7d authored by Dominik Charousset's avatar Dominik Charousset

Remove all function that are deprecated since 0.10

parent d0169ede
......@@ -396,20 +396,6 @@ public:
actor_addr& last_sender() CAF_DEPRECATED;
// </backward_compatibility>
// <backward_compatibility version="0.9">
inline void send_tuple(message_priority mp, const channel& whom,
message what) CAF_DEPRECATED;
inline void send_tuple(const channel& whom, message what) CAF_DEPRECATED;
inline void delayed_send_tuple(message_priority mp, const channel& whom,
const duration& rtime,
message data) CAF_DEPRECATED;
inline void delayed_send_tuple(const channel& whom, const duration& rtime,
message data) CAF_DEPRECATED;
// </backward_compatibility>
/****************************************************************************
* override pure virtual member functions of resumable *
****************************************************************************/
......@@ -620,35 +606,6 @@ private:
/// @relates local_actor
using local_actor_ptr = intrusive_ptr<local_actor>;
// <backward_compatibility version="0.9">
inline void local_actor::send_tuple(message_priority mp, const channel& whom,
message what) {
send_impl(message_id::make(mp), actor_cast<abstract_channel*>(whom),
std::move(what));
}
inline void local_actor::send_tuple(const channel& whom, message what) {
send_impl(message_id::make(), actor_cast<abstract_channel*>(whom),
std::move(what));
}
inline void local_actor::delayed_send_tuple(message_priority mp,
const channel& whom,
const duration& rtime,
message data) {
delayed_send_impl(message_id::make(mp), actor_cast<abstract_channel*>(whom),
rtime, std::move(data));
}
inline void local_actor::delayed_send_tuple(const channel& whom,
const duration& rtime,
message data) {
delayed_send_impl(message_id::make(),
actor_cast<abstract_channel*>(whom), rtime,
std::move(data));
}
// </backward_compatibility>
} // namespace caf
#endif // CAF_LOCAL_ACTOR_HPP
......@@ -208,23 +208,6 @@ public:
* deprecated member functions *
****************************************************************************/
// <backward_compatibility version="0.9">
response_handle_type sync_send_tuple(message_priority mp, const actor& dest,
message what) CAF_DEPRECATED;
response_handle_type sync_send_tuple(const actor& dest,
message what) CAF_DEPRECATED;
response_handle_type timed_sync_send_tuple(message_priority mp,
const actor& dest,
const duration& rtime,
message what) CAF_DEPRECATED;
response_handle_type timed_sync_send_tuple(const actor& dest,
const duration& rtime,
message what) CAF_DEPRECATED;
// </backward_compatibility>
private:
Subtype* dptr() {
return static_cast<Subtype*>(this);
......@@ -238,38 +221,6 @@ public:
using impl = sync_sender_impl<Base, Subtype, ResponseHandleTag>;
};
// <backward_compatibility version="0.9">
template <class B, class S, class H>
typename sync_sender_impl<B, S, H>::response_handle_type
sync_sender_impl<B, S, H>::sync_send_tuple(message_priority mp,
const actor& dest, message what) {
return sync_send(mp, dest, std::move(what));
}
template <class B, class S, class H>
typename sync_sender_impl<B, S, H>::response_handle_type
sync_sender_impl<B, S, H>::sync_send_tuple(const actor& dest, message what) {
return sync_send(message_priority::normal, dest, std::move(what));
}
template <class B, class S, class H>
typename sync_sender_impl<B, S, H>::response_handle_type
sync_sender_impl<B, S, H>::timed_sync_send_tuple(message_priority mp,
const actor& dest,
const duration& rtime,
message msg) {
return timed_sync_send(mp, dest, rtime, std::move(msg));
}
template <class B, class S, class H>
typename sync_sender_impl<B, S, H>::response_handle_type
sync_sender_impl<B, S, H>::timed_sync_send_tuple(const actor& dest,
const duration& rtime,
message msg) {
return timed_sync_send(message_priority::normal, dest, rtime, std::move(msg));
}
// </backward_compatibility>
} // namespace mixin
} // namespace caf
......
......@@ -136,37 +136,6 @@ void anon_send_exit(const ActorHandle& to, uint32_t reason) {
anon_send_exit(to.address(), reason);
}
// <backward_compatibility version="0.9">
inline void send_tuple_as(const actor& from, const channel& to,
message msg) CAF_DEPRECATED;
inline void send_tuple_as(const actor& from, const channel& to,
message_priority prio, message msg) CAF_DEPRECATED;
inline void anon_send_tuple(const channel& to, message msg) CAF_DEPRECATED;
inline void anon_send_tuple(const channel& to, message_priority prio,
message msg) CAF_DEPRECATED;
inline void send_tuple_as(const actor& from, const channel& to, message msg) {
send_as(from, to, std::move(msg));
}
inline void send_tuple_as(const actor& from, const channel& to,
message_priority prio, message msg) {
send_as(from, prio, to, std::move(msg));
}
inline void anon_send_tuple(const channel& to, message msg) {
send_as(invalid_actor, to, std::move(msg));
}
inline void anon_send_tuple(const channel& to, message_priority prio,
message msg) {
send_as(invalid_actor, prio, to, std::move(msg));
}
// </backward_compatibility>
} // namespace caf
#endif // CAF_SEND_HPP
......@@ -241,21 +241,6 @@ public:
/// Checks whether an acceptor for `handle` exists.
bool valid(accept_handle handle);
// <backward_compatibility version="0.9">
static constexpr auto at_least = receive_policy_flag::at_least;
static constexpr auto at_most = receive_policy_flag::at_most;
static constexpr auto exactly = receive_policy_flag::exactly;
void receive_policy(connection_handle hdl, receive_policy_flag flag,
size_t num_bytes) CAF_DEPRECATED {
configure_read(hdl, receive_policy::config{flag, num_bytes});
}
// </backward_compatibility>
protected:
abstract_broker();
......
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