From 071e2486051f07e599ae400c6fe264d12692292f Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 30 Dec 2015 08:44:26 +0100 Subject: [PATCH] kill dead code --- src/include/surf/surf.h | 19 ------------------- src/surf/surf_c_bindings.cpp | 10 ---------- 2 files changed, 29 deletions(-) diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index 36bfb089fd..ab9ef84365 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -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] diff --git a/src/surf/surf_c_bindings.cpp b/src/surf/surf_c_bindings.cpp index d317546497..e9190b2a52 100644 --- a/src/surf/surf_c_bindings.cpp +++ b/src/surf/surf_c_bindings.cpp @@ -446,16 +446,6 @@ const char* surf_storage_get_host(surf_resource_t resource){ return static_cast(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(); } -- 2.20.1