From 4027e635d50b510e322480c039bcc39449d096df Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 27 Dec 2011 02:42:33 +0200 Subject: DREAMWEB: Remove dead code --- engines/dreamweb/stubs.cpp | 2 -- engines/dreamweb/stubs.h | 2 -- engines/dreamweb/use.cpp | 34 ---------------------------------- 3 files changed, 38 deletions(-) diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index c8aac95e72..dd4911618c 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -457,8 +457,6 @@ static const Atmosphere g_atmosphereList[] = { }; void DreamGenContext::dreamweb() { - STACK_CHECK; - switch(engine->getLanguage()) { case Common::EN_ANY: case Common::EN_GRB: diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index ea3c17157d..c749693b60 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -43,7 +43,6 @@ uint8 printDirect(const uint8* string, uint16 x, uint16 y, uint8 maxWidth, bool centered) { return DreamBase::printDirect(string, x, y, maxWidth, centered); } - void width160(); bool checkIfPerson(uint8 x, uint8 y); bool checkIfFree(uint8 x, uint8 y); bool checkIfEx(uint8 x, uint8 y); @@ -60,7 +59,6 @@ void look(); void autoLook(); void doLook(); - void useKey(); void useObject(); void inventory(); void mainScreen(); diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp index 3e38215cca..34c68cfd34 100644 --- a/engines/dreamweb/use.cpp +++ b/engines/dreamweb/use.cpp @@ -1494,40 +1494,6 @@ void DreamBase::useAxe() { removeObFromInv(); } -void DreamGenContext::useKey() { - switch(data.byte(kLocation)) { - case 5: - case 30: - if (data.byte(kMapx) == 22 && data.byte(kMapy) == 10) { - showPuzText(0, 300); - data.byte(kCounttoclose) = 100; - data.byte(kGetback) = 1; - } else { - // Wrong room - showPuzText(2, 200); - putBackObStuff(); - } - break; - case 21: - if (data.byte(kMapx) == 11 && data.byte(kMapy) == 10) { - showPuzText(3, 300); - data.byte(kNewlocation) = 30; - al = 2; - fadeScreenDown(); - showFirstUse(); - putBackObStuff(); - } else { - // Wrong room - showPuzText(2, 200); - putBackObStuff(); - } - default: - showPuzText(1, 200); - putBackObStuff(); - break; - } -} - void DreamBase::useHandle() { SetObject *object = getSetAd(findSetObject("CUTW")); if (object->mapad[0] == 255) { -- cgit v1.2.3