From 23edae42f5d21ce32ab33977051a016949538ce2 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 23 Dec 2016 12:41:26 -0800 Subject: CRYO: Remove useless convertion functions --- engines/cryo/eden.cpp | 21 --------------------- engines/cryo/eden.h | 2 -- 2 files changed, 23 deletions(-) (limited to 'engines') diff --git a/engines/cryo/eden.cpp b/engines/cryo/eden.cpp index 7d537c1bd6..ebbc10ad9e 100644 --- a/engines/cryo/eden.cpp +++ b/engines/cryo/eden.cpp @@ -4850,29 +4850,8 @@ int EdenGame::ssndfl(uint16 num) { return size; } -void EdenGame::ConvertIcons(Icon *icon, int count) { - for (int i = 0; i < count; i++, icon++) { - icon->sx = BE16(icon->sx); - icon->sy = BE16(icon->sy); - icon->ex = BE16(icon->ex); - icon->ey = BE16(icon->ey); - icon->_cursorId = BE16(icon->_cursorId); - icon->_objectId = BE32(icon->_objectId); - icon->_actionId = BE32(icon->_actionId); - } -} - -void EdenGame::ConvertLinks(Room *room, int count) { - for (int i = 0; i < count; i++, room++) { - room->_bank = BE16(room->_bank); - room->_party = BE16(room->_party); - } -} - void EdenGame::ConvertMacToPC() { // Convert all mac (big-endian) resources to native format - ConvertIcons(_gameIcons, 136); - ConvertLinks(_gameRooms, 424); // Array of longs int *p = (int *)gameLipsync; for (int i = 0; i < 7240 / 4; i++) diff --git a/engines/cryo/eden.h b/engines/cryo/eden.h index 35f4b74498..9ecf55f855 100644 --- a/engines/cryo/eden.h +++ b/engines/cryo/eden.h @@ -283,8 +283,6 @@ private: void loadRoomFile(uint16 num, Room *buffer); void shnmfl(uint16 num); int ssndfl(uint16 num); - void ConvertIcons(Icon *icon, int count); - void ConvertLinks(Room *room, int count); void ConvertMacToPC(); void loadpermfiles(); bool ReadDataSyncVOC(unsigned int num); -- cgit v1.2.3