From 28af8707505a6bd33a83a3fbaa88bac88d9c414b Mon Sep 17 00:00:00 2001 From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com> Date: Fri, 28 Oct 2022 01:39:28 +0200 Subject: Code simplifications found by cppcheck They are based on: - Boolean arithmetic simplifications - setting variables that are not accessed - constant variables --- modules/vorbis/audio_stream_ogg_vorbis.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'modules/vorbis') diff --git a/modules/vorbis/audio_stream_ogg_vorbis.cpp b/modules/vorbis/audio_stream_ogg_vorbis.cpp index 792103cd31..63909257d9 100644 --- a/modules/vorbis/audio_stream_ogg_vorbis.cpp +++ b/modules/vorbis/audio_stream_ogg_vorbis.cpp @@ -438,9 +438,7 @@ void AudioStreamOggVorbis::maybe_update_info() { } if (i == 0) { packet->b_o_s = 1; - } - if (i == 0) { ERR_FAIL_COND(!vorbis_synthesis_idheader(packet)); } -- cgit v1.2.3