From: Timo Sirainen Date: Fri, 27 Oct 2017 23:07:32 +0000 (+0300) Subject: lib: Remove o_stream_nfinish() X-Git-Tag: 2.3.0.rc1~705 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4805c8a7d4bfcafa0282c31b2982757f852f8568;p=thirdparty%2Fdovecot%2Fcore.git lib: Remove o_stream_nfinish() --- diff --git a/src/lib/ostream.h b/src/lib/ostream.h index b93fd2d4e4..9b15959628 100644 --- a/src/lib/ostream.h +++ b/src/lib/ostream.h @@ -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