From e2b7b05e55b21d78240a66c27c7835baefaea35a Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 17 Apr 2009 17:34:21 +0000 Subject: [PATCH] (trunk) remove obscure macro --- gtk/main.c | 6 +++--- libtransmission/transmission.h | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gtk/main.c b/gtk/main.c index f78052904..2bba72574 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -171,10 +171,10 @@ accumulateStatusForeach( GtkTreeModel * model, gtk_tree_model_get( model, iter, MC_ACTIVITY, &activity, -1 ); - if( TR_STATUS_IS_ACTIVE( activity ) ) - ++counts->activeCount; - else + if( activity == TR_STATUS_STOPPED ) ++counts->inactiveCount; + else + ++counts->activeCount; } static void diff --git a/libtransmission/transmission.h b/libtransmission/transmission.h index e0dea86d6..de4cb4bd0 100644 --- a/libtransmission/transmission.h +++ b/libtransmission/transmission.h @@ -1308,8 +1308,6 @@ tr_torrent_activity; tr_torrent_activity tr_torrentGetActivity( tr_torrent * ); -#define TR_STATUS_IS_ACTIVE( s ) ( ( s ) != TR_STATUS_STOPPED ) - typedef enum { TR_LOCKFILE_SUCCESS = 0,