From 43b26ee6125ef7d5c35c1deeb1ba97a35908376c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Mar 2023 12:39:24 +0100 Subject: [PATCH] {de,en}coder/flac: remove obsolete FLAC_API_VERSION_CURRENT checks We check the libFLAC version via pkg-config at configure time, no need to do it again. --- src/decoder/plugins/FlacDecoderPlugin.cxx | 4 ---- src/encoder/plugins/FlacEncoderPlugin.cxx | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/decoder/plugins/FlacDecoderPlugin.cxx b/src/decoder/plugins/FlacDecoderPlugin.cxx index dda6606ad..7549722a3 100644 --- a/src/decoder/plugins/FlacDecoderPlugin.cxx +++ b/src/decoder/plugins/FlacDecoderPlugin.cxx @@ -12,10 +12,6 @@ #include "fs/NarrowPath.hxx" #include "Log.hxx" -#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7 -#error libFLAC is too old -#endif - static void flacPrintErroredState(FLAC__StreamDecoderState state) noexcept { diff --git a/src/encoder/plugins/FlacEncoderPlugin.cxx b/src/encoder/plugins/FlacEncoderPlugin.cxx index 25d721619..5419efb33 100644 --- a/src/encoder/plugins/FlacEncoderPlugin.cxx +++ b/src/encoder/plugins/FlacEncoderPlugin.cxx @@ -17,10 +17,6 @@ #include -#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7 -#error libFLAC is too old -#endif - class FlacEncoder final : public Encoder { const AudioFormat audio_format;