Skip to content

Commit

Permalink
refactor(cpps): Remove unused RoundRobin logging function
Browse files Browse the repository at this point in the history
RoundRobin currently does not support logging at all.
  • Loading branch information
ltoenning authored and janagoe committed Oct 13, 2023
1 parent 5f3d4cd commit 4315a53
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,4 @@ void CentralizedInitiator::readAmrRequestFuture() {
preparation_finished_ = true;
}

void CentralizedInitiator::logMaterialFlowOrderStatesOfTask(const material_flow::Task &task,
const OrderStates &order_state) {
// log each order of the task
for (auto i = 0; i < task.getOrders().size(); i++) {
MaterialFlowOrderUpdateLoggingInfo logging_info;
logging_info.task = task;
logging_info.order_index = i;
logging_info.order_state = order_state;

logger_->logMaterialFlowOrderUpdate(logging_info);
}
}

} // namespace daisi::cpps::logical
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ class CentralizedInitiator : public AssignmentInitiator {
/// @param info The necessary information about the new participant.
virtual void storeParticipant(ParticipantInfo &info) = 0;

/// @brief Log the new state of a task.
/// @param task The changed task.
/// @param order_state The new order state.
void logMaterialFlowOrderStatesOfTask(const material_flow::Task &task,
const OrderStates &order_state);

/// @brief All material flows that have been received to assign their tasks.
std::vector<material_flow::MFDLScheduler> material_flows_;

Expand Down

0 comments on commit 4315a53

Please sign in to comment.