ircd: remove broken USE_IODEBUG_HOOKS knob and related code

This commit is contained in:
William Pitcock 2016-02-20 12:02:49 -06:00
parent 8f64d32533
commit c678fbc08b
16 changed files with 26 additions and 103 deletions

View file

@ -235,11 +235,7 @@ read_packet(rb_fde_t * F, void *data)
{
struct Client *client_p = data;
int length = 0;
int binary = 0;
#ifdef USE_IODEBUG_HOOKS
hook_data_int hdata;
#endif
while(1)
{
@ -268,13 +264,6 @@ read_packet(rb_fde_t * F, void *data)
return;
}
#ifdef USE_IODEBUG_HOOKS
hdata.client = client_p;
hdata.arg1 = readBuf;
hdata.arg2 = length;
call_hook(h_iorecv_id, &hdata);
#endif
if(client_p->localClient->lasttime < rb_current_time())
client_p->localClient->lasttime = rb_current_time();
client_p->flags &= ~FLAGS_PINGSENT;