From f01978c6750ce45d43d7a788a6ef29dc76385711 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 1 Jun 2016 00:51:51 +0200 Subject: MOHAWK: Remove a useless structure --- engines/mohawk/view.cpp | 6 ------ engines/mohawk/view.h | 8 -------- 2 files changed, 14 deletions(-) diff --git a/engines/mohawk/view.cpp b/engines/mohawk/view.cpp index a8547967a5..63e4f84627 100644 --- a/engines/mohawk/view.cpp +++ b/engines/mohawk/view.cpp @@ -343,12 +343,6 @@ View::View(MohawkEngine *vm) : _vm(vm) { _gfx = nullptr; _rootNode = nullptr; _cursorNode = nullptr; - - for (int i = 0; i < 17; i++) { - _syncChannels[i].masterId = 0; - _syncChannels[i].state = 0; - _syncChannels[i].alternate = false; - } } View::~View() { diff --git a/engines/mohawk/view.h b/engines/mohawk/view.h index 47853f056f..8bf4701de4 100644 --- a/engines/mohawk/view.h +++ b/engines/mohawk/view.h @@ -192,13 +192,6 @@ protected: void finishResetFeatureScript(); }; -#define NUM_SYNC_CHANNELS 17 -struct SyncChannel { - uint16 masterId; - byte state; - bool alternate; -}; - class View { public: View(MohawkEngine *vm); @@ -234,7 +227,6 @@ public: void sortView(); uint32 _lastIdleTime; - SyncChannel _syncChannels[NUM_SYNC_CHANNELS]; virtual uint32 getTime() = 0; -- cgit v1.2.3