From a9113d6f217e32068b356fa249923e0c9be5a5b7 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 12 Feb 2018 23:27:04 +0100 Subject: [PATCH] Kill unused function TRACE_surf_action(). --- src/include/surf/surf.hpp | 4 +--- src/surf/instr_surf.cpp | 10 +--------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/include/surf/surf.hpp b/src/include/surf/surf.hpp index ad88665a7a..ea0fdb2930 100644 --- a/src/include/surf/surf.hpp +++ b/src/include/surf/surf.hpp @@ -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(); diff --git a/src/surf/instr_surf.cpp b/src/surf/instr_surf.cpp index 2746a66bb2..8cf1ecfdd6 100644 --- a/src/surf/instr_surf.cpp +++ b/src/surf/instr_surf.cpp @@ -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); -} -- 2.20.1