Skip to content
Browse files

Remove the unused pclient_write_cb

  • Loading branch information...
1 parent d384d72 commit 8e82ac14595033a262967f5ce033d94c63391928 @rosslagerwall committed Jun 25, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/pclient.c
View
10 src/pclient.c
@@ -26,8 +26,7 @@
void
pclient_read_cb(struct bufferevent *bev, void *ctx);
-void
-pclient_write_cb(struct bufferevent *bev, void *ctx);
+
void
pclient_event_cb(struct bufferevent *bev, short events, void *ctx);
@@ -70,7 +69,7 @@ pclient_new(struct event_base *base, char *location, char *path)
/* Create a socket to connect to the remote http server */
client->bev = bufferevent_socket_new(base, -1,
BEV_OPT_CLOSE_ON_FREE);
- bufferevent_setcb(client->bev, pclient_read_cb, pclient_write_cb,
+ bufferevent_setcb(client->bev, pclient_read_cb, NULL,
pclient_event_cb, client);
bufferevent_enable(client->bev, EV_READ|EV_WRITE);
@@ -143,11 +142,6 @@ pclient_read_cb(struct bufferevent *bev, void *ctx)
}
void
-pclient_write_cb(struct bufferevent *bev, void *ctx)
-{
-}
-
-void
pclient_event_cb(struct bufferevent *bev, short events, void *ctx)
{
if (events & BEV_EVENT_ERROR) {

0 comments on commit 8e82ac1

Please sign in to comment.
Something went wrong with that request. Please try again.