]> granicus.if.org Git - transmission/commitdiff
(trunk) remove obscure macro
authorCharles Kerr <charles@transmissionbt.com>
Fri, 17 Apr 2009 17:34:21 +0000 (17:34 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Fri, 17 Apr 2009 17:34:21 +0000 (17:34 +0000)
gtk/main.c
libtransmission/transmission.h

index f78052904f9f4e89d226777df6816875549af89d..2bba725748d32f799d1f02623c96ff7079cea6ad 100644 (file)
@@ -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
index e0dea86d65e4c433a67c3a234eee302822d51a55..de4cb4bd096440dd5197cfe1b3d3f46fb7d34085 100644 (file)
@@ -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,