Commit 00be7107 authored by Dominik Charousset's avatar Dominik Charousset

Remove dead code

parent d3b6a5d4
...@@ -40,7 +40,6 @@ set (LIBCAF_CORE_SRCS ...@@ -40,7 +40,6 @@ set (LIBCAF_CORE_SRCS
src/broadcast.cpp src/broadcast.cpp
src/concatenated_tuple.cpp src/concatenated_tuple.cpp
src/config_option.cpp src/config_option.cpp
src/continue_helper.cpp
src/decorated_tuple.cpp src/decorated_tuple.cpp
src/default_attachable.cpp src/default_attachable.cpp
src/deserializer.cpp src/deserializer.cpp
......
...@@ -74,8 +74,6 @@ ...@@ -74,8 +74,6 @@
#include "caf/typed_behavior.hpp" #include "caf/typed_behavior.hpp"
#include "caf/proxy_registry.hpp" #include "caf/proxy_registry.hpp"
#include "caf/behavior_policy.hpp" #include "caf/behavior_policy.hpp"
#include "caf/continue_helper.hpp"
#include "caf/mailbox_element.hpp"
#include "caf/message_builder.hpp" #include "caf/message_builder.hpp"
#include "caf/message_handler.hpp" #include "caf/message_handler.hpp"
#include "caf/response_handle.hpp" #include "caf/response_handle.hpp"
......
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
* | |___ / ___ \| _| Framework *
* \____/_/ \_|_| *
* *
* Copyright (C) 2011 - 2017 *
* Dominik Charousset <dominik.charousset (at) haw-hamburg.de> *
* *
* Distributed under the terms and conditions of the BSD 3-Clause License or *
* (at your option) under the terms and conditions of the Boost Software *
* License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. *
* *
* If you did not receive a copy of the license files, see *
* http://opensource.org/licenses/BSD-3-Clause and *
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#ifndef CAF_CONTINUE_HELPER_HPP
#define CAF_CONTINUE_HELPER_HPP
#include "caf/message_id.hpp"
namespace caf {
/// Helper class to enable users to add continuations
/// when dealing with synchronous sends.
class continue_helper {
public:
explicit continue_helper(message_id mid);
/// Returns the ID of the expected response message.
message_id get_message_id() const {
return mid_;
}
private:
message_id mid_;
};
} // namespace caf
#endif // CAF_CONTINUE_HELPER_HPP
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "caf/expected.hpp" #include "caf/expected.hpp"
#include "caf/optional.hpp" #include "caf/optional.hpp"
#include "caf/make_message.hpp" #include "caf/make_message.hpp"
#include "caf/typed_continue_helper.hpp"
#include "caf/detail/int_list.hpp" #include "caf/detail/int_list.hpp"
#include "caf/detail/apply_args.hpp" #include "caf/detail/apply_args.hpp"
......
...@@ -93,7 +93,6 @@ class proxy_registry; ...@@ -93,7 +93,6 @@ class proxy_registry;
class stream_handler; class stream_handler;
class upstream_policy; class upstream_policy;
class actor_companion; class actor_companion;
class continue_helper;
class downstream_path; class downstream_path;
class mailbox_element; class mailbox_element;
class message_handler; class message_handler;
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "caf/catch_all.hpp" #include "caf/catch_all.hpp"
#include "caf/message_id.hpp" #include "caf/message_id.hpp"
#include "caf/typed_behavior.hpp" #include "caf/typed_behavior.hpp"
#include "caf/continue_helper.hpp"
#include "caf/system_messages.hpp" #include "caf/system_messages.hpp"
#include "caf/detail/type_list.hpp" #include "caf/detail/type_list.hpp"
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "caf/message_handler.hpp" #include "caf/message_handler.hpp"
#include "caf/system_messages.hpp" #include "caf/system_messages.hpp"
#include "caf/interface_mismatch.hpp" #include "caf/interface_mismatch.hpp"
#include "caf/typed_continue_helper.hpp"
#include "caf/detail/typed_actor_util.hpp" #include "caf/detail/typed_actor_util.hpp"
......
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
* | |___ / ___ \| _| Framework *
* \____/_/ \_|_| *
* *
* Copyright (C) 2011 - 2017 *
* Dominik Charousset <dominik.charousset (at) haw-hamburg.de> *
* *
* Distributed under the terms and conditions of the BSD 3-Clause License or *
* (at your option) under the terms and conditions of the Boost Software *
* License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. *
* *
* If you did not receive a copy of the license files, see *
* http://opensource.org/licenses/BSD-3-Clause and *
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#ifndef CAF_TYPED_CONTINUE_HELPER_HPP
#define CAF_TYPED_CONTINUE_HELPER_HPP
#include "caf/continue_helper.hpp"
namespace caf {
template <class OutputList>
class typed_continue_helper {
public:
typed_continue_helper(message_id mid) : ch_(mid) {
// nop
}
typed_continue_helper(continue_helper ch) : ch_(std::move(ch)) {
// nop
}
message_id get_message_id() const {
return ch_.get_message_id();
}
continue_helper& unbox() {
return ch_;
}
private:
continue_helper ch_;
};
} // namespace caf
#endif // CAF_TYPED_CONTINUE_HELPER_HPP
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
* | |___ / ___ \| _| Framework *
* \____/_/ \_|_| *
* *
* Copyright (C) 2011 - 2017 *
* Dominik Charousset <dominik.charousset (at) haw-hamburg.de> *
* *
* Distributed under the terms and conditions of the BSD 3-Clause License or *
* (at your option) under the terms and conditions of the Boost Software *
* License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. *
* *
* If you did not receive a copy of the license files, see *
* http://opensource.org/licenses/BSD-3-Clause and *
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#include "caf/continue_helper.hpp"
#include "caf/event_based_actor.hpp"
namespace caf {
continue_helper::continue_helper(message_id mid) : mid_(mid) {
// nop
}
} // 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