Removed Transform::needsTransition()

Transform::updateTransitions() already checks if there is a callback to
update transitions.
This commit is contained in:
Bruno de Oliveira Abinader
2015-08-03 00:14:07 +03:00
parent 0eb7effad7
commit 58357b7964
3 changed files with 4 additions and 9 deletions

View File

@@ -377,10 +377,6 @@ void Transform::startTransition(std::function<Update(double)> frame,
transitionFinishFn = finish;
}
bool Transform::needsTransition() const {
return !!transitionFrameFn;
}
UpdateType Transform::updateTransitions(const TimePoint& now) {
return static_cast<UpdateType>(transitionFrameFn ? transitionFrameFn(now) : Update::Nothing);
}