[Scummvm-git-logs] scummvm master -> eafc0691c9f962d25a7d23a6af305b82bf2a7e41

bluegr noreply at scummvm.org
Sun Apr 10 20:01:02 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
eafc0691c9 CHEWY: Remove obsolete functions


Commit: eafc0691c9f962d25a7d23a6af305b82bf2a7e41
    https://github.com/scummvm/scummvm/commit/eafc0691c9f962d25a7d23a6af305b82bf2a7e41
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2022-04-10T23:00:50+03:00

Commit Message:
CHEWY: Remove obsolete functions

Changed paths:
    engines/chewy/atds.cpp
    engines/chewy/atds.h
    engines/chewy/text.cpp
    engines/chewy/text.h


diff --git a/engines/chewy/atds.cpp b/engines/chewy/atds.cpp
index a33f2cae44c..b03dc9acd0f 100644
--- a/engines/chewy/atds.cpp
+++ b/engines/chewy/atds.cpp
@@ -385,14 +385,6 @@ void Atdsys::load_atds(int16 chunkNr, int16 mode) {
 	}
 }
 
-void Atdsys::crypt(char *txt, uint32 size) {
-	uint8 *sp = (uint8 *)txt;
-	for (uint32 i = 0; i < size; i++) {
-		*sp = -(*sp);
-		++sp;
-	}
-}
-
 void Atdsys::set_ats_mem(int16 mode) {
 	switch (mode) {
 	case ATS_DATA:
diff --git a/engines/chewy/atds.h b/engines/chewy/atds.h
index f34120e35fb..19b2c169f8b 100644
--- a/engines/chewy/atds.h
+++ b/engines/chewy/atds.h
@@ -233,7 +233,6 @@ public:
 	void load_atds(int16 chunkNr, int16 mode);
 
 	void set_handle(const char *fname, int16 mode, int16 chunkStart, int16 chunkNr);
-	void crypt(char *txt, uint32 size);
 	bool start_ats(int16 txtNr, int16 txtMode, int16 color, int16 mode, int16 *vocNr);
 	void stop_ats();
 	bool atsShown() { return _atsv.shown; }
diff --git a/engines/chewy/text.cpp b/engines/chewy/text.cpp
index bea90db3bfb..76b7b42a2da 100644
--- a/engines/chewy/text.cpp
+++ b/engines/chewy/text.cpp
@@ -220,14 +220,6 @@ Common::String Text::getTextEntry(uint chunk, uint entry, int type, int subEntry
 	return res.size() > 0 ? res[0] : "";
 }
 
-void Text::crypt(char *txt, uint32 size) {
-	uint8 *sp = (uint8 *)txt;
-	for (uint32 i = 0; i < size; i++) {
-		*sp = -(*sp);
-		++sp;
-	}
-}
-
 const char *Text::strPos(const char *txtAdr, int16 pos) {
 	const char *ptr = txtAdr;
 	for (int16 i = 0; i < pos;) {
diff --git a/engines/chewy/text.h b/engines/chewy/text.h
index 0ef63cc10b1..54416d095b2 100644
--- a/engines/chewy/text.h
+++ b/engines/chewy/text.h
@@ -90,7 +90,6 @@ public:
 	Common::StringArray getTextArray(uint chunk, uint entry, int type, int subEntry = -1);
 	Common::String getTextEntry(uint chunk, uint entry, int type, int subEntry = -1);
 
-	void crypt(char *txt, uint32 size);
 	const char *strPos(const char *txtAdr, int16 pos);
 };
 




More information about the Scummvm-git-logs mailing list