Skip to content
Snippets Groups Projects
Commit 05506102 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

iobuf: remove dead code

Remove iobuf_is_idle(). It uses obuf.wpos, which itself
needs to be removed from obuf.
parent 970aabb3
No related branches found
No related tags found
No related merge requests found
...@@ -83,16 +83,6 @@ iobuf_new_mt(struct slab_cache *slabc_out); ...@@ -83,16 +83,6 @@ iobuf_new_mt(struct slab_cache *slabc_out);
void void
iobuf_reset(struct iobuf *iobuf); iobuf_reset(struct iobuf *iobuf);
/** Return true if there is no input and no output and
* no one has pinned the buffer - i.e. it's safe to
* destroy it.
*/
static inline bool
iobuf_is_idle(struct iobuf *iobuf)
{
return ibuf_used(&iobuf->in) == 0 && obuf_used(&iobuf->out) == 0;
}
/** /**
* Got to be called in each thread iobuf subsystem is * Got to be called in each thread iobuf subsystem is
* used in. * used in.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment