From 0443ba156241b5158908845091054fd13e1d3b17 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 16 Oct 2017 22:08:02 +0200 Subject: [PATCH] Remove unused macros. --- include/xbt/ex.h | 26 +------------------------- src/xbt/dict_cursor.c | 5 +---- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/include/xbt/ex.h b/include/xbt/ex.h index 6307177900..b475442203 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2005-2015. The SimGrid Team. +/* Copyright (c) 2005-2017. The SimGrid Team. * All rights reserved. */ /* Copyright (c) 2002-2004 Ralf S. Engelschall */ @@ -50,30 +50,6 @@ #include "xbt/misc.h" #include "xbt/virtu.h" -/*-*-* Emergency debuging: define this when the exceptions get crazy *-*-*/ -#undef __EX_MAYDAY -#ifdef __EX_MAYDAY -# include -#include -# define MAYDAY_SAVE(m) printf("%d %s:%d save %p\n", \ - xbt_getpid(), __FILE__, __LINE__, \ - (m)->jb \ - ), -# define MAYDAY_RESTORE(m) printf("%d %s:%d restore %p\n", \ - xbt_getpid(), __FILE__, __LINE__, \ - (m)->jb \ - ), -# define MAYDAY_CATCH(e) printf("%d %s:%d Catched '%s'\n", \ - xbt_getpid(), __FILE__, __LINE__, \ - (e).msg \ - ), -#else -# define MAYDAY_SAVE(m) -# define MAYDAY_RESTORE(m) -# define MAYDAY_CATCH(e) -#endif -/*-*-* end of debugging stuff *-*-*/ - /** @addtogroup XBT_ex_c * @brief Exceptions support (C) * diff --git a/src/xbt/dict_cursor.c b/src/xbt/dict_cursor.c index 38c7930270..574a4e6860 100644 --- a/src/xbt/dict_cursor.c +++ b/src/xbt/dict_cursor.c @@ -1,6 +1,6 @@ /* dict_cursor - iterators over dictionaries */ -/* Copyright (c) 2004-2014. The SimGrid Team. +/* Copyright (c) 2004-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -19,9 +19,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_dict_cursor, xbt_dict, "To traverse dictiona /* Don't add or remove entries to the dict while traversing !!! */ /*###########################################################################*/ -#undef xbt_dict_CURSOR_DEBUG -/*#define xbt_dict_CURSOR_DEBUG 1*/ - /** @brief Creator * @param dict the dict */ -- 2.20.1