mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 20:41:27 -04:00
Remove bufferevent_del_generic_timeout_cbs as now unused
This commit is contained in:
parent
e9ebef83a0
commit
4ea4c6a93e
@ -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 other "generic_timeout" functions will work on it. Call this from
|
||||||
* the constructor function. */
|
* the constructor function. */
|
||||||
void bufferevent_init_generic_timeout_cbs_(struct bufferevent *bev);
|
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.
|
/** 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
|
* (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,
|
* we delete it.) Call this from anything that changes the timeout values,
|
||||||
|
@ -882,17 +882,6 @@ bufferevent_init_generic_timeout_cbs_(struct bufferevent *bev)
|
|||||||
bufferevent_generic_write_timeout_cb, 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
|
int
|
||||||
bufferevent_generic_adj_timeouts_(struct bufferevent *bev)
|
bufferevent_generic_adj_timeouts_(struct bufferevent *bev)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user