From 9f1fd0dbff6e1702f49708c8ef4cc91f3b44ca4e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 23 Dec 2014 11:03:02 +0200 Subject: ZVISION: Disable unused code --- engines/zvision/text/text.cpp | 8 +++++++- engines/zvision/text/text.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/zvision/text/text.cpp b/engines/zvision/text/text.cpp index d1dc784f3e..53fcafd027 100644 --- a/engines/zvision/text/text.cpp +++ b/engines/zvision/text/text.cpp @@ -44,10 +44,12 @@ cTxtStyle::cTxtStyle() { _green = 255; _red = 255; _bold = false; +#if 0 + _newline = false; _escapement = 0; +#endif _italic = false; _justify = TXT_JUSTIFY_LEFT; - _newline = false; _size = 12; _skipcolor = false; _strikeout = false; @@ -115,10 +117,12 @@ txtReturn cTxtStyle::parseStyle(const Common::String &strin, int16 ln) { } } } else if (token.matchString("newline", true)) { +#if 0 if ((retval & TXT_RET_NEWLN) == 0) _newline = 0; _newline++; +#endif retval |= TXT_RET_NEWLN; } else if (token.matchString("point", true)) { if (!tokenizer.empty()) { @@ -132,8 +136,10 @@ txtReturn cTxtStyle::parseStyle(const Common::String &strin, int16 ln) { } else if (token.matchString("escapement", true)) { if (!tokenizer.empty()) { token = tokenizer.nextToken(); +#if 0 int32 tmp = atoi(token.c_str()); _escapement = tmp; +#endif } } else if (token.matchString("italic", true)) { if (!tokenizer.empty()) { diff --git a/engines/zvision/text/text.h b/engines/zvision/text/text.h index c278b011c7..c044e91579 100644 --- a/engines/zvision/text/text.h +++ b/engines/zvision/text/text.h @@ -61,8 +61,10 @@ public: uint8 _red; // 0-255 uint8 _green; // 0-255 uint8 _blue; // 0-255 +#if 0 int8 _newline; int8 _escapement; +#endif bool _italic; bool _bold; bool _underline; -- cgit v1.2.3