From b148baa6577aad91e28908b962d5d8211f3a1533 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 6 Jun 2004 23:20:44 +0000 Subject: [PATCH] cleanup --- stepmania/src/CryptHelpers.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/stepmania/src/CryptHelpers.cpp b/stepmania/src/CryptHelpers.cpp index c674f3812f..df6da8f2b1 100644 --- a/stepmania/src/CryptHelpers.cpp +++ b/stepmania/src/CryptHelpers.cpp @@ -78,16 +78,12 @@ unsigned int RageFileStore::CopyRangeTo2(BufferedTransformation &target, unsigne byte result; m_file.Read( &result, 1 ); m_file.Seek( current ); - if (m_file.AtEOF()) - { + if( m_file.AtEOF() ) return 0; - } - else - { - unsigned int blockedBytes = target.ChannelPut(channel, byte(result), blocking); - begin += 1-blockedBytes; - return blockedBytes; - } + + unsigned int blockedBytes = target.ChannelPut(channel, byte(result), blocking); + begin += 1-blockedBytes; + return blockedBytes; } // TODO: figure out what happens on cin