Some cleanup items
Posted: Sun Dec 31, 2017 3:47 pm
Be sure to check behind me, I am a rookie.
AltAdvancement.cpp around line 245
Before
After
Commands.cpp around 5706
Luafunctions.cpp around line 6409
Both of these look unused
PlayerGroups.cpp around 284
This looks unused
Log.cpp around 310
This should be long unsigned
AltAdvancement.cpp around line 245
Before
Code: Select all
for (int x = 0; x < TreeNodeList.size(); x++)Code: Select all
for (uint x = 0; x < TreeNodeList.size(); x++)Code: Select all
//delete this is unused
int64 value = 0;Both of these look unused
Code: Select all
//int32 duration = lua_interface->GetInt32Value(state, 3);
float vertical = lua_interface->GetFloatValue(state, 4);
float horizontal = lua_interface->GetFloatValue(state, 5);
bool use_heading = lua_interface->GetInt8Value(state, 6) == 1 ? true : false;
//LuaSpell* spell = lua_interface->GetCurrentSpell(state);This looks unused
Code: Select all
int32 group_size = m_groups[leader->GetGroupMemberInfo()->group_id]->Size();This should be long unsigned
Code: Select all
fprintf(stderr, "%s: %u: Unable to allocate %lu bytes\n", __FUNCTION__, __LINE__, sizeof(logq_t));