From c17de516c7866e5194e1a17b139cbd6475db001c Mon Sep 17 00:00:00 2001 From: NotAdam Date: Sat, 9 Feb 2019 18:01:53 +1100 Subject: [PATCH] cleanup unused getClassAsInt function --- src/world/Actor/Chara.cpp | 6 ------ src/world/Actor/Chara.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/world/Actor/Chara.cpp b/src/world/Actor/Chara.cpp index da15f966..2a7f7869 100644 --- a/src/world/Actor/Chara.cpp +++ b/src/world/Actor/Chara.cpp @@ -108,12 +108,6 @@ Sapphire::Common::ClassJob Sapphire::Entity::Chara::getClass() const return m_class; } -/*! \return current class or job as int32_t ( this feels pointless ) */ -uint8_t Sapphire::Entity::Chara::getClassAsInt() const -{ - return static_cast< uint8_t >( m_class ); -} - /*! \param ClassJob to set */ void Sapphire::Entity::Chara::setClass( Common::ClassJob classJob ) { diff --git a/src/world/Actor/Chara.h b/src/world/Actor/Chara.h index 253ec9bc..87d9146b 100644 --- a/src/world/Actor/Chara.h +++ b/src/world/Actor/Chara.h @@ -180,8 +180,6 @@ namespace Sapphire::Entity Common::ClassJob getClass() const; - uint8_t getClassAsInt() const; - void setClass( Common::ClassJob classJob ); void setTargetId( uint64_t targetId );