mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
refactor(src/common): remove unused imports (#19506)
* refactor(src/common): remove unused imports * fix: build * chore: fix build * chore: size_t -> std::size_t * chore: fix fuckup from previous commit * chore: fix build * chore: fix build * chore: fix build * chore: fix build with std::size_t * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build
This commit is contained in:
@@ -434,7 +434,7 @@ Player::~Player()
|
||||
|
||||
delete PlayerTalkClass;
|
||||
|
||||
for (size_t x = 0; x < ItemSetEff.size(); x++)
|
||||
for (std::size_t x = 0; x < ItemSetEff.size(); x++)
|
||||
delete ItemSetEff[x];
|
||||
|
||||
delete m_declinedname;
|
||||
@@ -2749,7 +2749,7 @@ void Player::SendInitialSpells()
|
||||
WorldPacket data(SMSG_INITIAL_SPELLS, (1 + 2 + 4 * m_spells.size() + 2 + m_spellCooldowns.size() * (4 + 2 + 2 + 4 + 4)));
|
||||
data << uint8(0);
|
||||
|
||||
size_t countPos = data.wpos();
|
||||
std::size_t countPos = data.wpos();
|
||||
data << uint16(spellCount); // spell count placeholder
|
||||
|
||||
for (PlayerSpellMap::const_iterator itr = m_spells.begin(); itr != m_spells.end(); ++itr)
|
||||
@@ -8153,7 +8153,7 @@ void Player::SendInitWorldStates(uint32 zoneid, uint32 areaid)
|
||||
data << uint32(mapid); // mapid
|
||||
data << uint32(zoneid); // zone id
|
||||
data << uint32(areaid); // area id, new 2.1.0
|
||||
size_t countPos = data.wpos();
|
||||
std::size_t countPos = data.wpos();
|
||||
data << uint16(0); // count of uint64 blocks
|
||||
data << uint32(0x8d8) << uint32(0x0); // 1
|
||||
data << uint32(0x8d7) << uint32(0x0); // 2
|
||||
@@ -9442,7 +9442,7 @@ void Player::PetSpellInitialize()
|
||||
// action bar loop
|
||||
charmInfo->BuildActionBar(&data);
|
||||
|
||||
size_t spellsCountPos = data.wpos();
|
||||
std::size_t spellsCountPos = data.wpos();
|
||||
|
||||
// spells count
|
||||
uint8 addlist = 0;
|
||||
@@ -14270,7 +14270,7 @@ void Player::BuildPlayerTalentsInfoData(WorldPacket* data)
|
||||
for (uint32 specIdx = 0; specIdx < m_specsCount; ++specIdx)
|
||||
{
|
||||
uint8 talentIdCount = 0;
|
||||
size_t pos = data->wpos();
|
||||
std::size_t pos = data->wpos();
|
||||
*data << uint8(talentIdCount); // [PH], talentIdCount
|
||||
|
||||
const PlayerTalentMap& talentMap = GetTalentMap();
|
||||
@@ -14295,11 +14295,11 @@ void Player::BuildPlayerTalentsInfoData(WorldPacket* data)
|
||||
void Player::BuildPetTalentsInfoData(WorldPacket* data)
|
||||
{
|
||||
uint32 unspentTalentPoints = 0;
|
||||
size_t pointsPos = data->wpos();
|
||||
std::size_t pointsPos = data->wpos();
|
||||
*data << uint32(unspentTalentPoints); // [PH], unspentTalentPoints
|
||||
|
||||
uint8 talentIdCount = 0;
|
||||
size_t countPos = data->wpos();
|
||||
std::size_t countPos = data->wpos();
|
||||
*data << uint8(talentIdCount); // [PH], talentIdCount
|
||||
|
||||
Pet* pet = GetPet();
|
||||
@@ -14378,7 +14378,7 @@ void Player::SendTalentsInfoData(bool pet)
|
||||
void Player::BuildEnchantmentsInfoData(WorldPacket* data)
|
||||
{
|
||||
uint32 slotUsedMask = 0;
|
||||
size_t slotUsedMaskPos = data->wpos();
|
||||
std::size_t slotUsedMaskPos = data->wpos();
|
||||
*data << uint32(slotUsedMask); // slotUsedMask < 0x80000
|
||||
|
||||
for (uint32 i = 0; i < EQUIPMENT_SLOT_END; ++i)
|
||||
@@ -14393,7 +14393,7 @@ void Player::BuildEnchantmentsInfoData(WorldPacket* data)
|
||||
*data << uint32(item->GetEntry()); // item entry
|
||||
|
||||
uint16 enchantmentMask = 0;
|
||||
size_t enchantmentMaskPos = data->wpos();
|
||||
std::size_t enchantmentMaskPos = data->wpos();
|
||||
*data << uint16(enchantmentMask); // enchantmentMask < 0x1000
|
||||
|
||||
for (uint32 j = 0; j < MAX_ENCHANTMENT_SLOT; ++j)
|
||||
@@ -14422,7 +14422,7 @@ void Player::SendEquipmentSetList()
|
||||
{
|
||||
uint32 count = 0;
|
||||
WorldPacket data(SMSG_EQUIPMENT_SET_LIST, 4);
|
||||
size_t count_pos = data.wpos();
|
||||
std::size_t count_pos = data.wpos();
|
||||
data << uint32(count); // count placeholder
|
||||
for (EquipmentSets::iterator itr = m_EquipmentSets.begin(); itr != m_EquipmentSets.end(); ++itr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user