1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-01-12 08:40:27 +00:00

remove unused function Channel_PCount

This commit is contained in:
Florian Westphal 2006-12-07 22:23:39 +00:00
parent fa7bb2790a
commit fb0fbe908d
2 changed files with 3 additions and 24 deletions

View File

@ -17,7 +17,7 @@
#include "portab.h"
static char UNUSED id[] = "$Id: channel.c,v 1.60 2006/12/07 17:57:20 fw Exp $";
static char UNUSED id[] = "$Id: channel.c,v 1.61 2006/12/07 22:23:39 fw Exp $";
#include "imp.h"
#include <assert.h>
@ -336,24 +336,6 @@ Channel_CountForUser( CLIENT *Client )
} /* Channel_CountForUser */
GLOBAL int
Channel_PCount( void )
{
/* Count the number of persistent (mode 'P') channels */
CHANNEL *chan;
int count = 0;
chan = My_Channels;
while( chan )
{
if( strchr( chan->modes, 'P' )) count++;
chan = chan->next;
}
return count;
} /* Channel_PCount */
GLOBAL const char *
Channel_Name( const CHANNEL *Chan )
@ -617,9 +599,7 @@ Channel_IsMemberOf( CHANNEL *Chan, CLIENT *Client )
assert( Chan != NULL );
assert( Client != NULL );
if( Get_Cl2Chan( Chan, Client )) return true;
else return false;
return Get_Cl2Chan(Chan, Client);
} /* Channel_IsMemberOf */

View File

@ -8,7 +8,7 @@
* (at your option) any later version.
* Please read the file COPYING, README and AUTHORS for more information.
*
* $Id: channel.h,v 1.32 2006/12/07 17:57:20 fw Exp $
* $Id: channel.h,v 1.33 2006/12/07 22:23:39 fw Exp $
*
* Channel management (header)
*/
@ -73,7 +73,6 @@ GLOBAL void Channel_Kick PARAMS(( CLIENT *Client, CLIENT *Origin, char *Name, c
GLOBAL unsigned long Channel_Count PARAMS(( void ));
GLOBAL unsigned long Channel_MemberCount PARAMS(( CHANNEL *Chan ));
GLOBAL int Channel_CountForUser PARAMS(( CLIENT *Client ));
GLOBAL int Channel_PCount PARAMS(( void ));
GLOBAL const char *Channel_Name PARAMS(( const CHANNEL *Chan ));
GLOBAL char *Channel_Modes PARAMS(( CHANNEL *Chan ));