Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill an unused function
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Jul 2015 15:10:03 +0000 (17:10 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Jul 2015 15:10:09 +0000 (17:10 +0200)
src/include/surf/surf.h
src/surf/surf_c_bindings.cpp
teshsuite/surf/surf_usage/surf_usage.c

index 3c4f5fd..abc095a 100644 (file)
@@ -194,7 +194,6 @@ static inline void *surf_storage_resource_by_name(const char *name){
 }
 
 
-XBT_PUBLIC(char *) surf_routing_edge_name(sg_routing_edge_t edge);
 XBT_PUBLIC(void *) surf_as_cluster_get_backbone(AS_t as);
 XBT_PUBLIC(void) surf_as_cluster_set_backbone(AS_t as, void* backbone);
 
index 795f61f..6ea7968 100644 (file)
@@ -26,10 +26,6 @@ static VM *get_casted_vm(surf_resource_t resource){
   return static_cast<VM*>(surf_host_resource_priv(resource));
 }
 
-char *surf_routing_edge_name(sg_routing_edge_t edge){
-  return edge->getName();
-}
-
 extern double NOW;
 
 void surf_presolve(void)
@@ -41,8 +37,8 @@ void surf_presolve(void)
   Model *model = NULL;
   unsigned int iter;
 
-  XBT_DEBUG
-      ("First Run! Let's \"purge\" events and put models in the right state");
+  XBT_DEBUG ("First Run! Let's \"purge\" events and put models in the right state");
+
   while ((next_event_date = tmgr_history_next_date(history)) != -1.0) {
     if (next_event_date > NOW)
       break;
index a1e779e..81f2e72 100644 (file)
@@ -86,8 +86,8 @@ void test(char *platform)
   cardB = sg_routing_edge_by_name_or_null("Cpu B");
 
   /* Let's check that those two processors exist */
-  XBT_DEBUG("%s : %p", surf_routing_edge_name(cardA), cardA);
-  XBT_DEBUG("%s : %p", surf_routing_edge_name(cardB), cardB);
+  XBT_DEBUG("Cpu A: %p", cardA);
+  XBT_DEBUG("Cpu B: %p", cardB);
 
   /* Let's do something on it */
   surf_network_model_communicate(surf_network_model, cardA, cardB, 150.0, -1.0);