Skip to content

Commit

Permalink
Remove obsolete Node::setTransformChangedCallback()
Browse files Browse the repository at this point in the history
This callback mechanism seems to have only been used by the now-removed light
list system.
  • Loading branch information
Matthew Mott committed Feb 9, 2021
1 parent aab26c8 commit b6b8c2f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions libs/scene/Node.cpp
Expand Up @@ -440,11 +440,6 @@ void Node::transformChangedLocal()
_transformMutex = false;
_boundsChanged = true;
_childBoundsChanged = true;

if (_transformChangedCallback)
{
_transformChangedCallback();
}
}

void Node::transformChanged()
Expand All @@ -462,10 +457,6 @@ void Node::transformChanged()
boundsChanged();
}

void Node::setTransformChangedCallback(const Callback& callback) {
_transformChangedCallback = callback;
}

RenderSystemPtr Node::getRenderSystem() const
{
return _renderSystem.lock();
Expand Down
3 changes: 0 additions & 3 deletions libs/scene/Node.h
Expand Up @@ -50,7 +50,6 @@ class Node :
mutable bool _childBoundsMutex;
mutable bool _transformChanged;
mutable bool _transformMutex;
Callback _transformChangedCallback;

mutable Matrix4 _local2world;

Expand Down Expand Up @@ -152,8 +151,6 @@ class Node :

void transformChanged() override;

void setTransformChangedCallback(const Callback& callback);

// greebo: This gets called as soon as a scene::Node gets inserted into
// the TraversableNodeSet. This triggers an instantiation call on the child node.
virtual void onChildAdded(const INodePtr& child);
Expand Down

0 comments on commit b6b8c2f

Please sign in to comment.