aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-10-17 13:54:27 +0300
committerEugene Sandulenko2013-10-17 13:54:27 +0300
commit787689ff3266b60a12dd2224bb0a8bf5cfca27a3 (patch)
tree23c18ced57202261498b3f06b06d62d7bc6394db /engines
parent955b585bd0fc2238ffbd6dac1edf1b3c5cc21ef8 (diff)
downloadscummvm-rg350-787689ff3266b60a12dd2224bb0a8bf5cfca27a3.tar.gz
scummvm-rg350-787689ff3266b60a12dd2224bb0a8bf5cfca27a3.tar.bz2
scummvm-rg350-787689ff3266b60a12dd2224bb0a8bf5cfca27a3.zip
TESTBED: Remove logically dead code. CID 1004067
Diffstat (limited to 'engines')
-rw-r--r--engines/testbed/events.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/testbed/events.cpp b/engines/testbed/events.cpp
index 78de87e133..4b9ced2a53 100644
--- a/engines/testbed/events.cpp
+++ b/engines/testbed/events.cpp
@@ -83,11 +83,10 @@ struct keycodeToChar {
char EventTests::keystrokeToChar() {
Common::EventManager *eventMan = g_system->getEventManager();
- bool quitLoop = false;
Common::Event event;
// handle all keybd events
- while (!quitLoop) {
+ while (true) {
while (eventMan->pollEvent(event)) {
// Quit if explicitly requested!
if (Engine::shouldQuit()) {
@@ -110,8 +109,6 @@ char EventTests::keystrokeToChar() {
}
}
}
-
- return 0;
}
Common::Rect EventTests::drawFinishZone() {