Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
code simplification
[simgrid.git] / src / kernel / activity / CommImpl.cpp
index 7f19e42..c5b8e12 100644 (file)
@@ -71,11 +71,7 @@ void simgrid::kernel::activity::CommImpl::cancel()
 /**  @brief get the amount remaining from the communication */
 double simgrid::kernel::activity::CommImpl::remains()
 {
-  if (state == SIMIX_RUNNING)
-    return surf_comm->getRemains();
-
-  /* FIXME: check what should be returned in the other cases */
-  return 0;
+  return surf_comm->getRemains();
 }
 
 /** @brief This is part of the cleanup process, probably an internal command */