Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill dead code
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 30 Dec 2015 07:44:26 +0000 (08:44 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 30 Dec 2015 07:44:26 +0000 (08:44 +0100)
src/include/surf/surf.h
src/surf/surf_c_bindings.cpp

index 36bfb08..ab9ef84 100644 (file)
@@ -451,25 +451,6 @@ XBT_PUBLIC(void) surf_vm_set_bound(sg_host_t resource, double bound);
  */
 XBT_PUBLIC(void) surf_vm_set_affinity(sg_host_t resource, sg_host_t cpu, unsigned long mask);
 
-/**
- * @brief Execute some quantity of computation
- *
- * @param cpu The surf cpu
- * @param size The value of the processing amount (in flop) needed to process
- * @return The surf action corresponding to the processing
- */
-XBT_PUBLIC(surf_action_t) surf_cpu_execute(sg_host_t cpu, double size);
-
-/**
- * @brief Make the cpu sleep for duration (in seconds)
- * @details [long description]
- *
- * @param cpu The surf cpu
- * @param duration The number of seconds to sleep
- * @return The surf action corresponding to the sleeping
- */
-XBT_PUBLIC(surf_action_t) surf_cpu_sleep(sg_host_t cpu, double duration);
-
 /**
  * @brief Get the host power peak
  * @details [long description]
index d317546..e9190b2 100644 (file)
@@ -446,16 +446,6 @@ const char* surf_storage_get_host(surf_resource_t resource){
   return static_cast<simgrid::surf::Storage*>(surf_storage_resource_priv(resource))->p_attach;
 }
 
-surf_action_t surf_cpu_execute(sg_host_t host, double size){
-       xbt_die("FIXME: DEADCODE");
-  return host->p_cpu->execute(size);
-}
-
-surf_action_t surf_cpu_sleep(sg_host_t host, double duration){
-       xbt_die("FIXME: DEADCODE");
-  return host->p_cpu->sleep(duration);
-}
-
 double surf_action_get_start_time(surf_action_t action){
   return action->getStartTime();
 }