aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2015-10-13 07:41:06 +0300
committerWillem Jan Palenstijn2015-12-23 21:33:40 +0100
commitf014218acad608ba7f589b580a89fe75e59c507e (patch)
tree2f1b6e1bc044f5c3cd3a05a8a21ae94e5cc4bea4
parenta6805e884d812e974832160311543ac1048a9f0e (diff)
downloadscummvm-rg350-f014218acad608ba7f589b580a89fe75e59c507e.tar.gz
scummvm-rg350-f014218acad608ba7f589b580a89fe75e59c507e.tar.bz2
scummvm-rg350-f014218acad608ba7f589b580a89fe75e59c507e.zip
LAB: Remove dead code
-rw-r--r--engines/lab/readdiff.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/engines/lab/readdiff.cpp b/engines/lab/readdiff.cpp
index e75d08e3f3..15b55e52bb 100644
--- a/engines/lab/readdiff.cpp
+++ b/engines/lab/readdiff.cpp
@@ -38,7 +38,7 @@
namespace Lab {
static bool PlayOnce = false;
-static uint32 header, size, processed = 0L, WaitSec = 0L, WaitMicros = 0L, DelayMicros = 0L;
+static uint32 header, size, WaitSec = 0L, WaitMicros = 0L, DelayMicros = 0L;
static uint16 CurBit = 0, framenumber = 0, samplespeed, numchunks = 1;
static byte *Buffer, temp[5];
static bool donepal = false;
@@ -176,10 +176,6 @@ void diffNextFrame() {
readBlock(&size, 4L, difffile);
swapULong(&size);
- processed += 8L;
-
- processed += size;
-
switch (header) {
case 8L:
readBlock(diffcmap, size, difffile);
@@ -296,7 +292,6 @@ void diffNextFrame() {
/* A separate task launched by readDiff. Plays the DIFF. */
/*****************************************************************************/
void playDiff() {
- processed = 0L;
WaitSec = 0L;
WaitMicros = 0L;
DelayMicros = 0L;
@@ -331,8 +326,6 @@ void playDiff() {
readBlock(&header, 4L, difffile);
swapULong(&header);
- processed += 8L;
-
if (!((strcmp((char *)temp, "DIFF") == 0) && (header == 1219009121L))) {
IsPlaying = false;
return;
@@ -375,8 +368,6 @@ void playDiff() {
return;
}
- processed += 8L + size;
-
for (header = 0; header < 8; header++)
RawDiffBM.Planes[header] = NULL;