Simplify control flow.
[libfirm] / ir / stat / statev.h
index 6f22560..8d135df 100644 (file)
@@ -22,7 +22,6 @@
  * @brief       Statistic events.
  * @author      Sebastian Hack
  * @date        17.06.2007
- * @version     $Id$
  */
 
 #ifndef FIRM_STATEVENT_H
@@ -30,9 +29,7 @@
 
 #ifdef DISABLE_STATEV
 
-#define stat_ev_do(expr)                         0
 #define stat_ev_enabled                          0
-#define stat_ev_if                               if (0)
 #define stat_ev_dbl(name, val)                   ((void)0)
 #define stat_ev_int(name, val)                   ((void)0)
 #define stat_ev(name)                            ((void)0)
@@ -132,9 +129,6 @@ static inline void stat_ev_tim_pop(const char *name) {
 #define stat_ev_cnt_inc(var)        do { ++stat_ev_cnt_var_ ## var; } while(0)
 #define stat_ev_cnt_done(var, name) stat_ev_emit((name), stat_ev_cnt_var_ ## var)
 
-#define stat_ev_do(expr)            (stat_ev_enabled ? ((expr), 1) : 0)
-#define stat_ev_if                  if (stat_ev_enabled)
-
 /**
  * Initialize the stat ev machinery.
  * @param filename_prefix  The prefix of the filename (.ev or .ev.gz will be appended).