From 0bfe6cabceb61b4dee2fab1afcd4a80cd39237d2 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Sat, 9 Jun 2007 16:04:00 +0000 Subject: Remove a useless if (quit) block. It's enclosed in two while loops: the top depending on !quit, which doesn't set it anywhere before the if (quit) block is reached, and the inner one which doesn't set quit at all. Since it's a local variable and can't be modified externally, it'll never be hit. git-svn-id: https://svn.musicpd.org/mpd/trunk@6524 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/decode.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/decode.c b/src/decode.c index fbc06b45c..d0e3f8a3d 100644 --- a/src/decode.c +++ b/src/decode.c @@ -649,10 +649,6 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * while (pc->queueState == PLAYER_QUEUE_DECODE || pc->queueLockState == PLAYER_QUEUE_LOCKED) { processDecodeInput(); - if (quit) { - quitDecode(pc, dc); - return; - } my_usleep(10000); } if (pc->queueState != PLAYER_QUEUE_PLAY) { -- cgit v1.2.3