From 3fde0306a44e1649d8922d59ea209a74736df8f2 Mon Sep 17 00:00:00 2001 From: md5 Date: Sun, 10 Apr 2011 05:47:29 +0300 Subject: TINSEL: Removed the useless LookAtBuffers() function --- engines/tinsel/bmv.cpp | 17 ----------------- engines/tinsel/bmv.h | 1 - 2 files changed, 18 deletions(-) (limited to 'engines') diff --git a/engines/tinsel/bmv.cpp b/engines/tinsel/bmv.cpp index 3f56288aca..a459f2c919 100644 --- a/engines/tinsel/bmv.cpp +++ b/engines/tinsel/bmv.cpp @@ -1045,21 +1045,6 @@ void BMVPlayer::CopyMovieToScreen() { BmvDrawText(false); } -/** - * LookAtBuffers - */ -void BMVPlayer::LookAtBuffers() { - // FIXME: What's the point of this function??? - // Maybe to ensure the relevant data is loaded into cache by the CPU? - static int junk; // FIXME: Avoid non-const global vars - int i; - - if (bigBuffer) { - for (i = 0; i < NUM_SLOTS; i++) - junk += bigBuffer[i*SLOT_SIZE]; - } -} - /** * Handles playback of any active movie. Called from the foreground 24 times a second. */ @@ -1078,8 +1063,6 @@ void BMVPlayer::FettleBMV() { return; } - LookAtBuffers(); - if (!stream.isOpen()) { int i; diff --git a/engines/tinsel/bmv.h b/engines/tinsel/bmv.h index 2644504cab..99a43e0740 100644 --- a/engines/tinsel/bmv.h +++ b/engines/tinsel/bmv.h @@ -151,7 +151,6 @@ private: bool MaintainBuffer(); bool DoBMVFrame(); bool DoSoundFrame(); - void LookAtBuffers(); }; -- cgit v1.2.3