From 2822df856d2ff4ca730a0a2a12fe9a120e495784 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Tue, 11 Mar 2014 07:31:12 +0100 Subject: [PATCH] CGE: Remove the useless return value of XCrypt() --- engines/cge/fileio.cpp | 4 +--- engines/cge/fileio.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/engines/cge/fileio.cpp b/engines/cge/fileio.cpp index bab01b62d3ba..2b1f74db0256 100644 --- a/engines/cge/fileio.cpp +++ b/engines/cge/fileio.cpp @@ -93,13 +93,11 @@ ResourceManager::~ResourceManager() { delete _buff[i]._page; } -uint16 ResourceManager::XCrypt(byte *buf, uint16 length) { +void ResourceManager::XCrypt(byte *buf, uint16 length) { byte *b = buf; for (uint16 i = 0; i < length; i++) *b++ ^= kCryptSeed; - - return kCryptSeed; } bool ResourceManager::seek(int32 offs, int whence) { diff --git a/engines/cge/fileio.h b/engines/cge/fileio.h index 803d6b2d5887..77404fb55259 100644 --- a/engines/cge/fileio.h +++ b/engines/cge/fileio.h @@ -86,7 +86,7 @@ class ResourceManager { uint16 catRead(byte *buf, uint16 length); Common::File *_catFile; Common::File *_datFile; - uint16 XCrypt(byte *buf, uint16 length); + void XCrypt(byte *buf, uint16 length); public: ResourceManager();