[Cleanup] Remove GetMaxRank() from aa_ability.cpp/aa_ability.h (#3347)

# Notes
- This is unused.
This commit is contained in:
Alex King authored and GitHub committed 2023-05-24 22:44:53 -05:00
1 parent 65fd323eab
commit bd95ed44fd
2 files changed
+3 -16

No files matched your search

+3 -15
View File
@@ -21,22 +21,10 @@
#include "masterentity.h"
#include "aa_ability.h"
AA::Rank *AA::Ability::GetMaxRank() {
if(!first)
return nullptr;
Rank *current = first;
while(current->next) {
current = current->next;
}
return current;
}
AA::Rank *AA::Ability::GetRankByPointsSpent(int current_level) {
if(current_level == 0)
return nullptr;
if(!first)
return nullptr;
@@ -65,6 +53,6 @@ int AA::Ability::GetMaxLevel(Mob *who) {
max_level++;
current = current->next;
}
return max_level;
}
}
-1
View File
@@ -37,7 +37,6 @@ public:
Ability() { }
~Ability() { }
Rank *GetMaxRank();
Rank *GetRankByPointsSpent(int current_level);
int GetMaxLevel(Mob *who);