Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove the now unused MSG_task_get_initial_flops_amount()
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 8 Dec 2017 22:16:16 +0000 (23:16 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 8 Dec 2017 22:18:21 +0000 (23:18 +0100)
include/simgrid/msg.h
src/msg/msg_task.cpp

index 959fe86..a5389f8 100644 (file)
@@ -356,7 +356,6 @@ XBT_PUBLIC(msg_error_t) MSG_process_sleep(double nb_sec);
 
 XBT_PUBLIC(void) MSG_task_set_flops_amount(msg_task_t task, double flops_amount);
 XBT_PUBLIC(double) MSG_task_get_flops_amount(msg_task_t task);
-XBT_PUBLIC(double) MSG_task_get_initial_flops_amount(msg_task_t task);
 XBT_PUBLIC(double) MSG_task_get_remaining_work_ratio(msg_task_t task);
 XBT_PUBLIC(void) MSG_task_set_bytes_amount(msg_task_t task, double bytes_amount);
 
index e31fb10..b71d7fa 100644 (file)
@@ -265,18 +265,6 @@ double MSG_task_get_flops_amount(msg_task_t task) {
   }
 }
 
-/** \ingroup m_task_management
- * \brief Returns the initial amount of flops needed to execute a task #msg_task_t.
- *
- * Once a task has been processed, this amount is set to 0. If you want, you can reset this value with
- * #MSG_task_set_flops_amount before restarting the task.
- *
- * Warning: Only work for simple task, not parallel task.
- */
-double MSG_task_get_initial_flops_amount(msg_task_t task) {
-  return task->simdata->flops_amount;
-}
-
 /** \ingroup m_task_management
  * \brief set the computation amount needed to process a task #msg_task_t.
  *