From a59957c8f46c0783408e045137330162b45d5f17 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Aug 2023 18:46:32 +0200 Subject: [PATCH] istream/Replace: remove unnecessary _Close() override --- src/istream/ReplaceIstream.cxx | 6 ------ src/istream/ReplaceIstream.hxx | 1 - 2 files changed, 7 deletions(-) diff --git a/src/istream/ReplaceIstream.cxx b/src/istream/ReplaceIstream.cxx index ffc85721b..34cbd3c38 100644 --- a/src/istream/ReplaceIstream.cxx +++ b/src/istream/ReplaceIstream.cxx @@ -542,12 +542,6 @@ ReplaceIstream::_ConsumeBucketList(size_t nbytes) noexcept return {total, IsEOF()}; } -void -ReplaceIstream::_Close() noexcept -{ - Destroy(); -} - void ReplaceIstream::Add(off_t start, off_t end, UnusedIstreamPtr contents) noexcept diff --git a/src/istream/ReplaceIstream.hxx b/src/istream/ReplaceIstream.hxx index 0a26ca6ba..bc29bd5c4 100644 --- a/src/istream/ReplaceIstream.hxx +++ b/src/istream/ReplaceIstream.hxx @@ -271,5 +271,4 @@ public: void _Read() noexcept override; void _FillBucketList(IstreamBucketList &list) override; ConsumeBucketResult _ConsumeBucketList(size_t nbytes) noexcept override; - void _Close() noexcept override; };