From ee5f8dce781e3f61f03a7ecf3daf03f58a455423 Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 8 Apr 2020 23:49:57 -0700 Subject: [PATCH] Remove unused function entityclass::resetflags() This looks like a weird hack, but there's no way a flag will ever end up being 2, not even before I changed all flags to be bools instead. --- desktop_version/src/Entity.cpp | 8 -------- desktop_version/src/Entity.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index 31e9d9f3..b29571da 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -78,14 +78,6 @@ void entityclass::resetallflags() } } -void entityclass::resetflags() -{ - for (int i = 0; i < 100; i++) - { - if (flags[i] == 2) flags[i] = 0; - } -} - void entityclass::confirmflags() { for (int i = 0; i < 100; i++) diff --git a/desktop_version/src/Entity.h b/desktop_version/src/Entity.h index 0ba7dc01..9092e694 100644 --- a/desktop_version/src/Entity.h +++ b/desktop_version/src/Entity.h @@ -28,8 +28,6 @@ public: void resetallflags(); - void resetflags(); - void confirmflags(); void fatal_top()