Removed unused function.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2442 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2008-11-11 03:52:38 +00:00
parent 61a14eb85c
commit 0fae019d40
2 changed files with 0 additions and 31 deletions

View File

@@ -53,36 +53,6 @@ namespace SSGHelp
} // createDisplayLists
// -------------------------------------------------------------------------
/** Adds a transform node to the branch.
*
* Creates a new ssgTransform node to which all children of the branch are
* added. The new ssgTransform is then set as the only child of the
* branch.
* \param branch The branch to which a transform node is added.
*/
ssgTransform* add_transform(ssgBranch* branch)
{
if (!branch) return 0;
ssgTransform* transform = new ssgTransform;
transform->ref();
for(ssgEntity* i = branch->getKid(0); i != NULL;
i = branch->getNextKid())
{
transform->addKid(i);
}
branch->removeAllKids();
branch->addKid(transform);
// Set some user data, so that the wheel isn't ssgFlatten()'ed
branch->setUserData(new ssgBase());
transform->setUserData(new ssgBase());
return transform;
} // add_transform
// ------------------------------------------------------------------------
/** Recursively prints a model.
*

View File

@@ -27,7 +27,6 @@
namespace SSGHelp {
//* Several useful functions which don't fit anywhere else
void createDisplayLists(ssgEntity *entity);
ssgTransform* add_transform (ssgBranch* branch);
void print_model (ssgEntity *entity, const int indent,
const int maxLevel);
void MinMax (const ssgEntity *p,