From a4cd7411e8cfb93adb8aa416edced59660908bc6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Jul 2016 17:03:26 +0200 Subject: [PATCH] decoder/sidplay: remove unnecessary error check The ReSIDBuilder constructor cannot fail. --- src/decoder/plugins/SidplayDecoderPlugin.cxx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/decoder/plugins/SidplayDecoderPlugin.cxx b/src/decoder/plugins/SidplayDecoderPlugin.cxx index a6f5c19aa..673b1fbba 100644 --- a/src/decoder/plugins/SidplayDecoderPlugin.cxx +++ b/src/decoder/plugins/SidplayDecoderPlugin.cxx @@ -178,12 +178,6 @@ sidplay_file_decode(Decoder &decoder, Path path_fs) /* initialize the builder */ ReSIDBuilder builder("ReSID"); - if (!builder) { - LogWarning(sidplay_domain, - "failed to initialize ReSIDBuilder"); - return; - } - builder.create(player.info().maxsids); if (!builder) { LogWarning(sidplay_domain, "ReSIDBuilder.create() failed");