From 344d66c3652ba34d931af7482237d2ae35c43588 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 21 Aug 2022 23:48:28 +0900 Subject: [PATCH] audio/internal/convert: remove Resampling.Close This function is not used anywhere. --- audio/internal/convert/resampling.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/audio/internal/convert/resampling.go b/audio/internal/convert/resampling.go index 34b2077c8..2a9a0de50 100644 --- a/audio/internal/convert/resampling.go +++ b/audio/internal/convert/resampling.go @@ -243,10 +243,3 @@ func (r *Resampling) Seek(offset int64, whence int) (int64, error) { } return r.pos, nil } - -func (r *Resampling) Close() error { - if closer, ok := r.source.(io.Closer); ok { - return closer.Close() - } - panic("audio/internal/convert: r.source must be io.Closer") -}