From b0c952b05ad9e62b83fecf04d7470069bbafc8fd Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 10 Dec 2020 00:28:43 +0100 Subject: [PATCH] Kill dead code: tracing_category is managed by AnyActivity. --- include/simgrid/s4u/Comm.hpp | 3 --- src/s4u/s4u_Comm.cpp | 7 ------- 2 files changed, 10 deletions(-) diff --git a/include/simgrid/s4u/Comm.hpp b/include/simgrid/s4u/Comm.hpp index 47490987a5..cc16d68d3c 100644 --- a/include/simgrid/s4u/Comm.hpp +++ b/include/simgrid/s4u/Comm.hpp @@ -27,7 +27,6 @@ class XBT_PUBLIC Comm : public Activity_T { size_t dst_buff_size_ = 0; void* src_buff_ = nullptr; size_t src_buff_size_ = sizeof(void*); - std::string tracing_category_ = ""; /* FIXME: expose these elements in the API */ bool detached_ = false; bool (*match_fun_)(void*, void*, kernel::activity::CommImpl*) = nullptr; @@ -110,8 +109,6 @@ public: * That's a buffer where the sent data will be copied */ CommPtr set_dst_data(void** buff, size_t size); - CommPtr set_tracing_category(const std::string& category); - /** Retrieve the mailbox on which this comm acts */ Mailbox* get_mailbox() const; /** Retrieve the size of the received data. Not to be mixed with @ref Activity::set_remaining() */ diff --git a/src/s4u/s4u_Comm.cpp b/src/s4u/s4u_Comm.cpp index ebb2567ff9..8b37c10376 100644 --- a/src/s4u/s4u_Comm.cpp +++ b/src/s4u/s4u_Comm.cpp @@ -113,13 +113,6 @@ CommPtr Comm::set_dst_data(void** buff, size_t size) return this; } -CommPtr Comm::set_tracing_category(const std::string& category) -{ - xbt_assert(state_ == State::INITED, "Cannot change the tracing category of an exec after its start"); - tracing_category_ = category; - return this; -} - Comm* Comm::start() { xbt_assert(get_state() == State::INITED || get_state() == State::STARTING, -- 2.20.1