]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: iostream-temp - Remove support for o_stream_seek()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 21 Oct 2025 09:09:25 +0000 (12:09 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 22 Oct 2025 08:21:14 +0000 (11:21 +0300)
It's not needed by anything, and it's just making the code more complex.

src/lib/iostream-temp.c

index 147b1536029f969f2cb580267bfba9bdc945c48d..b518367c4511a1570cc6e49419c34d1913aa911e 100644 (file)
@@ -264,12 +264,6 @@ o_stream_temp_send_istream(struct ostream_private *_outstream,
        return io_stream_copy(&outstream->ostream.ostream, instream);
 }
 
-static int o_stream_temp_seek(struct ostream_private *_stream, uoff_t offset)
-{
-       _stream->ostream.offset = offset;
-       return 0;
-}
-
 struct ostream *iostream_temp_create(const char *temp_path_prefix,
                                     enum iostream_temp_flags flags)
 {
@@ -296,7 +290,6 @@ struct ostream *iostream_temp_create_sized(const char *temp_path_prefix,
        tstream->ostream.ostream.blocking = TRUE;
        tstream->ostream.sendv = o_stream_temp_sendv;
        tstream->ostream.send_istream = o_stream_temp_send_istream;
-       tstream->ostream.seek = o_stream_temp_seek;
        tstream->ostream.iostream.close = o_stream_temp_close;
        tstream->temp_path_prefix = i_strdup(temp_path_prefix);
        tstream->flags = flags;