diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-12-22 00:06:49 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-12-22 00:06:49 +0000 |
commit | 590ce173b30cddbc4a65a26e4eb7b74908ea8dfe (patch) | |
tree | 35244e2beabf01e57b7c658cffb0fc572d772f0f /src/core/net-sendbuffer.c | |
parent | bae9c1db7a2a2fb2169d147a3632d0f46454f09f (diff) | |
download | irssi-590ce173b30cddbc4a65a26e4eb7b74908ea8dfe.zip |
Remove buffers GSList, it is unused since r1023.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4970 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/net-sendbuffer.c')
-rw-r--r-- | src/core/net-sendbuffer.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/net-sendbuffer.c b/src/core/net-sendbuffer.c index 4bd34317..95534d8c 100644 --- a/src/core/net-sendbuffer.c +++ b/src/core/net-sendbuffer.c @@ -24,8 +24,6 @@ #include "net-sendbuffer.h" #include "line-split.h" -static GSList *buffers; - /* Create new buffer - if `bufsize' is zero or less, DEFAULT_BUFFER_SIZE is used */ NET_SENDBUF_REC *net_sendbuffer_create(GIOChannel *handle, int bufsize) @@ -40,15 +38,12 @@ NET_SENDBUF_REC *net_sendbuffer_create(GIOChannel *handle, int bufsize) rec->bufsize = bufsize > 0 ? bufsize : DEFAULT_BUFFER_SIZE; rec->def_bufsize = rec->bufsize; - buffers = g_slist_append(buffers, rec); return rec; } /* Destroy the buffer. `close' specifies if socket handle should be closed. */ void net_sendbuffer_destroy(NET_SENDBUF_REC *rec, int close) { - buffers = g_slist_remove(buffers, rec); - if (rec->send_tag != -1) g_source_remove(rec->send_tag); if (close) net_disconnect(rec->handle); if (rec->readbuffer != NULL) line_split_free(rec->readbuffer); @@ -184,7 +179,6 @@ GIOChannel *net_sendbuffer_handle(NET_SENDBUF_REC *rec) void net_sendbuffer_init(void) { - buffers = NULL; } void net_sendbuffer_deinit(void) |