Skip to content

Commit

Permalink
chore: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias committed Sep 8, 2024
1 parent 568cf81 commit ae6ef92
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/solo3v3_sc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,18 +628,6 @@ void PlayerScript3v3Arena::OnLogin(Player* pPlayer)
}
}

// not sure if this function is ever called, TODO: verify if the hook is called, if not, remove it
void PlayerScript3v3Arena::GetCustomGetArenaTeamId(const Player* player, uint8 slot, uint32& id) const
{
if (slot == ARENA_SLOT_SOLO_3v3)
{
if (ArenaTeam* at = sArenaTeamMgr->GetArenaTeamByCaptain(player->GetGUID(), ARENA_TYPE_3v3_SOLO))
{
id = at->GetId();
}
}
}

void PlayerScript3v3Arena::OnGetArenaPersonalRating(Player* player, uint8 slot, uint32& rating)
{
if (slot == ARENA_SLOT_SOLO_3v3)
Expand Down
1 change: 0 additions & 1 deletion src/solo3v3_sc.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ class PlayerScript3v3Arena : public PlayerScript
PlayerScript3v3Arena() : PlayerScript("player_script_3v3_arena") {}

void OnLogin(Player* pPlayer) override;
void GetCustomGetArenaTeamId(const Player* player, uint8 slot, uint32& id) const override;
void OnGetArenaPersonalRating(Player* player, uint8 slot, uint32& rating) override;
void OnGetMaxPersonalArenaRatingRequirement(const Player* player, uint32 minslot, uint32& maxArenaRating) const override;
void OnGetArenaTeamId(Player* player, uint8 slot, uint32& result) override;
Expand Down

0 comments on commit ae6ef92

Please sign in to comment.