]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Remove o_stream_nfinish()
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 27 Oct 2017 23:07:32 +0000 (02:07 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Mon, 30 Oct 2017 11:04:53 +0000 (13:04 +0200)
src/lib/ostream.h

index b93fd2d4e448a9e3f5e1207577e2c459003e8b56..9b1595962890e6f1ffd11bd826465ce5bd72a70e 100644 (file)
@@ -155,10 +155,6 @@ void o_stream_nsend(struct ostream *stream, const void *data, size_t size);
 void o_stream_nsendv(struct ostream *stream, const struct const_iovec *iov,
                     unsigned int iov_count);
 void o_stream_nsend_str(struct ostream *stream, const char *str);
-static inline int o_stream_nfinish(struct ostream *stream)
-{
-       return o_stream_flush(stream) < 0 ? -1 : 0;
-}
 /* Mark the ostream as finished and flush it. If the ostream has a footer,
    it's written here. Any further write attempts to the ostream will
    assert-crash. Returns the same as o_stream_flush(). Afterwards any calls to