From 46c17052c69b551e90059a0b2dc7d163824493e8 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 3 Apr 2020 14:34:15 -0700 Subject: [PATCH] Remove unused function entityclass::gettype() Not sure why this function is here. It makes sense if you know that the game will only do certain moving platform things if you already have a moving platform in the room, however apparently this function has absolutely nothing to do with it. --- desktop_version/src/Entity.cpp | 14 -------------- desktop_version/src/Entity.h | 2 -- 2 files changed, 16 deletions(-) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index 8925b0f6..6c22af08 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -3753,20 +3753,6 @@ void entityclass::animateentities( int _i ) } } -bool entityclass::gettype( int t ) -{ - //Returns true is there is an entity of type t onscreen - for (size_t i = 0; i < entities.size(); i++) - { - if(entities[i].type==t) - { - return true; - } - } - - return false; -} - int entityclass::getcompanion() { //Returns the index of the companion with rule t diff --git a/desktop_version/src/Entity.h b/desktop_version/src/Entity.h index 4715ddd2..7a06726f 100644 --- a/desktop_version/src/Entity.h +++ b/desktop_version/src/Entity.h @@ -91,8 +91,6 @@ public: void animateentities(int i); - bool gettype(int t); - int getcompanion(); int getplayer();