Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill unused function TRACE_surf_action().
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 12 Feb 2018 22:27:04 +0000 (23:27 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Feb 2018 10:18:01 +0000 (11:18 +0100)
src/include/surf/surf.hpp
src/surf/instr_surf.cpp

index ad88665..ea0fdb2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2017. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2018. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -388,8 +388,6 @@ XBT_PUBLIC(void) surf_exit();
 XBT_PUBLIC(void) parse_platform_file(const char* file);
 
 /********** Tracing **********/
-/* from surf_instr.c */
-void TRACE_surf_action(surf_action_t surf_action, const char* category);
 
 /* instr_routing.c */
 void instr_routing_define_callbacks();
index 2746a66..8cf1ecf 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010, 2012-2017. The SimGrid Team.
+/* Copyright (c) 2010, 2012-2018. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -22,11 +22,3 @@ void TRACE_surf_link_set_bandwidth(double date, const char *resource, double ban
     simgrid::instr::Container::byName(resource)->getVariable("bandwidth")->setEvent(date, bandwidth);
   }
 }
-
-void TRACE_surf_action(surf_action_t surf_action, const char *category)
-{
-  if (not TRACE_is_enabled() || not TRACE_categorized() || not category)
-    return;
-
-  surf_action->setCategory(category);
-}