mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 12:41:30 +00:00
[Cleanup] Remove GetMaxRank() from aa_ability.cpp/aa_ability.h (#3347)
# Notes - This is unused.
This commit is contained in:
parent
65fd323eab
commit
bd95ed44fd
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -37,7 +37,6 @@ public:
|
||||
Ability() { }
|
||||
~Ability() { }
|
||||
|
||||
Rank *GetMaxRank();
|
||||
Rank *GetRankByPointsSpent(int current_level);
|
||||
int GetMaxLevel(Mob *who);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user