diff options
author | Andrei Prykhodko | 2018-06-30 09:01:09 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-06-30 09:01:09 +0300 |
commit | 4d7bed967586e5d537c17b80a6aaf945a540d257 (patch) | |
tree | e2de695047dccfe3c7230eb82700f847b1c2dc03 /engines/pink | |
parent | 4938a33fbbdfd4d78571700792fb56e08dde62b9 (diff) | |
download | scummvm-rg350-4d7bed967586e5d537c17b80a6aaf945a540d257.tar.gz scummvm-rg350-4d7bed967586e5d537c17b80a6aaf945a540d257.tar.bz2 scummvm-rg350-4d7bed967586e5d537c17b80a6aaf945a540d257.zip |
PINK: removed unnecessary field from PDAPage
Diffstat (limited to 'engines/pink')
-rw-r--r-- | engines/pink/objects/pages/pda_page.cpp | 8 | ||||
-rw-r--r-- | engines/pink/objects/pages/pda_page.h | 3 |
2 files changed, 2 insertions, 9 deletions
diff --git a/engines/pink/objects/pages/pda_page.cpp b/engines/pink/objects/pages/pda_page.cpp index a6fa9b1338..d60b4d013a 100644 --- a/engines/pink/objects/pages/pda_page.cpp +++ b/engines/pink/objects/pages/pda_page.cpp @@ -27,9 +27,8 @@ namespace Pink { - PDAPage PDAPage::create(const Common::String &pageName, PDAMgr &pdaMgr) { - PDAPage page(pageName, pdaMgr); + PDAPage page(pageName); page._name = pageName; page._resMgr.init(pdaMgr.getGame(), &page); return page; @@ -43,9 +42,4 @@ Array<Actor *> PDAPage::takeActors() { return actorsCopy; } -PDAPage::PDAPage(const Common::String &name, PDAMgr &pdaMgr) - : _pdaMgr(pdaMgr) { - _name = name; -} - } // End of namespace Pink diff --git a/engines/pink/objects/pages/pda_page.h b/engines/pink/objects/pages/pda_page.h index fe0443b1b9..79da57c985 100644 --- a/engines/pink/objects/pages/pda_page.h +++ b/engines/pink/objects/pages/pda_page.h @@ -35,8 +35,7 @@ public: Array<Actor *> takeActors(); private: - PDAPage(const Common::String &name, PDAMgr &pdaMgr); - PDAMgr &_pdaMgr; + PDAPage(const Common::String &name) { _name = name; } }; } // End of namespace Pink |