Remove bufferevent_del_generic_timeout_cbs as now unused

This commit is contained in:
Nick Mathewson 2013-04-10 13:44:23 -04:00
parent e9ebef83a0
commit 4ea4c6a93e
2 changed files with 0 additions and 14 deletions

View File

@ -359,9 +359,6 @@ int bufferevent_add_event_(struct event *ev, const struct timeval *tv);
* the other "generic_timeout" functions will work on it. Call this from
* the constructor function. */
void bufferevent_init_generic_timeout_cbs_(struct bufferevent *bev);
/** Internal use: Delete the ev_read and ev_write callbacks if they're pending.
* Call this from the destructor function. */
int bufferevent_del_generic_timeout_cbs_(struct bufferevent *bev);
/** Internal use: Add or delete the generic timeout events as appropriate.
* (If an event is enabled and a timeout is set, we add the event. Otherwise
* we delete it.) Call this from anything that changes the timeout values,

View File

@ -882,17 +882,6 @@ bufferevent_init_generic_timeout_cbs_(struct bufferevent *bev)
bufferevent_generic_write_timeout_cb, bev);
}
int
bufferevent_del_generic_timeout_cbs_(struct bufferevent *bev)
{
int r1,r2;
r1 = event_del(&bev->ev_read);
r2 = event_del(&bev->ev_write);
if (r1<0 || r2<0)
return -1;
return 0;
}
int
bufferevent_generic_adj_timeouts_(struct bufferevent *bev)
{