From f12fe46fad425ca451036f6af06beab5ec3a81c5 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 12 May 2015 19:19:49 -0400 Subject: SHERLOCK: Remove redundant check from mergeDirtyRects --- engines/sherlock/screen.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/engines/sherlock/screen.cpp b/engines/sherlock/screen.cpp index c236915992..fb155bf502 100644 --- a/engines/sherlock/screen.cpp +++ b/engines/sherlock/screen.cpp @@ -170,13 +170,6 @@ void Screen::addDirtyRect(const Common::Rect &r) { void Screen::mergeDirtyRects() { Common::List::iterator rOuter, rInner; - // Ensure dirty rect list has at least two entries - rOuter = _dirtyRects.begin(); - for (int i = 0; i < 2; ++i, ++rOuter) { - if (rOuter == _dirtyRects.end()) - return; - } - // Process the dirty rect list to find any rects to merge for (rOuter = _dirtyRects.begin(); rOuter != _dirtyRects.end(); ++rOuter) { rInner = rOuter; -- cgit v1.2.3