diff options
author | Paul Gilbert | 2015-05-12 19:19:49 -0400 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-05-13 14:43:50 +0200 |
commit | f12fe46fad425ca451036f6af06beab5ec3a81c5 (patch) | |
tree | d99c3d9296df321c115eb961ea793d43788f6cf0 /engines/sherlock | |
parent | 2824c8214a86927cd3532cc07b7bc7dedcab74a1 (diff) | |
download | scummvm-rg350-f12fe46fad425ca451036f6af06beab5ec3a81c5.tar.gz scummvm-rg350-f12fe46fad425ca451036f6af06beab5ec3a81c5.tar.bz2 scummvm-rg350-f12fe46fad425ca451036f6af06beab5ec3a81c5.zip |
SHERLOCK: Remove redundant check from mergeDirtyRects
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/screen.cpp | 7 |
1 files changed, 0 insertions, 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<Common::Rect>::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; |