From e7ba1c287b7aef37c9aedf8a953910ac5c9380e2 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 6 Jun 2013 09:49:55 +0200 Subject: [PATCH] kill some dead code --- examples/msg/masterslave/masterslave_failure.c | 1 - examples/msg/properties/msg_prop.c | 1 - src/xbt/dynar.c | 10 ---------- src/xbt/log.c | 1 - 4 files changed, 13 deletions(-) diff --git a/examples/msg/masterslave/masterslave_failure.c b/examples/msg/masterslave/masterslave_failure.c index 6a4f5e324a..32b38ced20 100644 --- a/examples/msg/masterslave/masterslave_failure.c +++ b/examples/msg/masterslave/masterslave_failure.c @@ -16,7 +16,6 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, int master(int argc, char *argv[]); int slave(int argc, char *argv[]); -int forwarder(int argc, char *argv[]); msg_error_t test_all(const char *platform_file, const char *application_file); diff --git a/examples/msg/properties/msg_prop.c b/examples/msg/properties/msg_prop.c index 993a3549dd..1594db28cc 100644 --- a/examples/msg/properties/msg_prop.c +++ b/examples/msg/properties/msg_prop.c @@ -31,7 +31,6 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Property test"); int alice(int argc, char *argv[]); int bob(int argc, char *argv[]); int carole(int argc, char *argv[]); -int forwarder(int argc, char *argv[]); msg_error_t test_all(const char *platform_file, const char *application_file); diff --git a/src/xbt/dynar.c b/src/xbt/dynar.c index 6924f0bd89..b29a851b9b 100644 --- a/src/xbt/dynar.c +++ b/src/xbt/dynar.c @@ -34,16 +34,6 @@ static XBT_INLINE void _check_inbound_idx(xbt_dynar_t dynar, int idx) } } -static XBT_INLINE void _check_sloppy_inbound_idx(xbt_dynar_t dynar, - int idx) -{ - if (idx > dynar->used) { - THROWF(bound_error, idx, - "dynar is not that long. You asked %d, but it's only %lu long (could have been equal to it)", - (int) (idx), (unsigned long) dynar->used); - } -} - static XBT_INLINE void _check_populated_dynar(xbt_dynar_t dynar) { if (dynar->used == 0) { diff --git a/src/xbt/log.c b/src/xbt/log.c index 607d2e28f6..2bcb103852 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -24,7 +24,6 @@ #include "xbt/dynar.h" #include "xbt/xbt_os_thread.h" -XBT_PUBLIC_DATA(int) (*xbt_pid) (); int xbt_log_no_loc = 0; /* if set to true (with --log=no_loc), file localization will be omitted (for tesh tests) */ static xbt_os_rmutex_t log_cat_init_mutex = NULL; -- 2.20.1