From 2cb90afbda33648ca243a062bc6091d5556bed57 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 3 Apr 2020 14:57:07 -0700 Subject: [PATCH] Remove entclass::clear(), simplify entclass initializations Previously there was an entclass::clear(), and initialization of an entclass was done by calling clear() in order to not duplicate code. But now there's no need for an entclass::clear(), and it is in fact unused (just call entityclass::removeentity() instead), so I'm removing this function. --- desktop_version/src/Ent.cpp | 6 ------ desktop_version/src/Ent.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/desktop_version/src/Ent.cpp b/desktop_version/src/Ent.cpp index 0e9d9cec..5e8a1bfd 100644 --- a/desktop_version/src/Ent.cpp +++ b/desktop_version/src/Ent.cpp @@ -2,12 +2,6 @@ entclass::entclass() { - clear(); -} - -void entclass::clear() -{ - // Set all values to a default, required for creating a new entity invis = false; type = 0; size = 0; diff --git a/desktop_version/src/Ent.h b/desktop_version/src/Ent.h index 4cd96965..508269ae 100644 --- a/desktop_version/src/Ent.h +++ b/desktop_version/src/Ent.h @@ -8,8 +8,6 @@ class entclass public: entclass(); - void clear(); - bool outside(); void setenemy(int t);