mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-14 20:05:16 +00:00
Remove commented-out code
This commit is contained in:
parent
0f39b825e1
commit
eb128e65a4
162 changed files with 2092 additions and 6594 deletions
|
@ -41,7 +41,7 @@ void StateObject::removeState()
|
|||
{
|
||||
clearActions();
|
||||
clearCreatedEvents();
|
||||
//stateManager->getState(name)->eraseRenderObjects();
|
||||
|
||||
}
|
||||
|
||||
void StateObject::addRenderObject(RenderObject *renderObject, int layer)
|
||||
|
@ -71,11 +71,7 @@ StateData::StateData()
|
|||
|
||||
StateData::~StateData()
|
||||
{
|
||||
/*
|
||||
std::ostringstream os;
|
||||
os << "removing " << renderObjects.size() << " render Objects";
|
||||
MessageBox(0,os.str().c_str(),"",MB_OK);
|
||||
*/
|
||||
|
||||
for (int i = 0; i < renderObjects.size(); i++)
|
||||
{
|
||||
removeRenderObject (renderObjects[i]);
|
||||
|
@ -114,7 +110,7 @@ void StateData::removeRenderObjectFromList(RenderObject *renderObject)
|
|||
}
|
||||
|
||||
// assume this only happens on render state end
|
||||
void StateData::eraseRenderObjects()
|
||||
void StateData::eraseRenderObjects()
|
||||
{
|
||||
// why clear garbage here?
|
||||
//core->clearGarbage();
|
||||
|
@ -219,7 +215,7 @@ void StateManager::pushState(const std::string &s)
|
|||
s->stateObject = stateObjects[state];
|
||||
stateObjects[state]->applyState();
|
||||
}
|
||||
|
||||
|
||||
stateChangeFlag = true;
|
||||
}
|
||||
}
|
||||
|
@ -252,31 +248,18 @@ void StateManager::popState()
|
|||
|
||||
std::string StateManager::getNameFromDerivedClassTypeName(const std::string &typeidName)
|
||||
{
|
||||
/*
|
||||
int loc = typeidName.find_last_of("class ");
|
||||
if (loc != std::string::npos)
|
||||
{
|
||||
std::string tmp = typeidName.substr(6, typeidName.length());
|
||||
int loc2 = tmp.find_last_of("::");
|
||||
if (loc2 != std::string::npos)
|
||||
return tmp.substr(loc2+1, tmp.size());
|
||||
else
|
||||
return tmp;
|
||||
}
|
||||
else
|
||||
return typeidName;
|
||||
*/
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
void StateManager::registerStateObject(StateObject *stateObject, const std::string &name)
|
||||
{
|
||||
//const char *c = typeid(*stateObject).name();
|
||||
|
||||
|
||||
stateObject->name = name;
|
||||
stringToLower(stateObject->name);
|
||||
|
||||
//getNameFromDerivedClassTypeName(c);
|
||||
|
||||
if (stateObject->name.empty())
|
||||
{
|
||||
exit_error("StateManager::registerStateObject - Empty name.");
|
||||
|
@ -284,10 +267,7 @@ void StateManager::registerStateObject(StateObject *stateObject, const std::stri
|
|||
|
||||
if (!stateObjects[stateObject->name])
|
||||
stateObjects[stateObject->name] = stateObject;
|
||||
/*
|
||||
if (c)
|
||||
free((void*)c);
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
StateObject *StateManager::addStateInstance(StateObject *s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue