diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-03-10 23:28:51 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-03-10 23:28:51 -0500 |
commit | 6f47bd12ed27085f68573a02dfa2e2761eb1e6b0 (patch) | |
tree | 45fa9cdb8628ac9f27d4fc79961ffa79890ece2a /evbuffer-internal.h | |
parent | c8ac57f1f58358dfdb1030143ab043b6addd0c3c (diff) | |
download | libevent-6f47bd12ed27085f68573a02dfa2e2761eb1e6b0.tar.gz |
Remove previous_to_last from evbuffer
Diffstat (limited to 'evbuffer-internal.h')
-rw-r--r-- | evbuffer-internal.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/evbuffer-internal.h b/evbuffer-internal.h index d59b6a36..e8555dbd 100644 --- a/evbuffer-internal.h +++ b/evbuffer-internal.h @@ -73,19 +73,10 @@ struct evbuffer { struct evbuffer_chain *first; /** The last chain in this buffer's linked list of chains. */ struct evbuffer_chain *last; - /** The next-to-last chain in this buffer's linked list of chains. - * NULL if the buffer has 0 or 1 chains. Used in case there's an - * ongoing read that needs to be split across multiple chains: we want - * to add a new chain as a read target, but we don't want to lose our - * pointer to the next-to-last chain if the read turns out to be - * incomplete. - */ - /* FIXME: This should probably be called last_with_space and - * repurposed accordingly. */ - struct evbuffer_chain *previous_to_last; /** The last chain that has any data in it. If all chains in the - * buffer are empty, points to the first chain */ + * buffer are empty, points to the first chain. If the buffer has no + * chains, this is NULL. */ struct evbuffer_chain *last_with_data; /** Total amount of bytes stored in all chains.*/ |