diff --git a/src/apps/icon-o-matic/transformable/TransformBox.cpp b/src/apps/icon-o-matic/transformable/TransformBox.cpp index c3e96f07dc..1f0925fc8e 100644 --- a/src/apps/icon-o-matic/transformable/TransformBox.cpp +++ b/src/apps/icon-o-matic/transformable/TransformBox.cpp @@ -201,13 +201,11 @@ TransformBox::MouseOver(BPoint where) { TransformToCanvas(where); - _SetState(_DragStateFor(where, ZoomLevel())); fMousePos = where; - if (fCurrentState) { - fCurrentState->UpdateViewCursor(fView, fMousePos); - return true; - } - return false; + fCurrentState = _DragStateFor(where, ZoomLevel()); + fCurrentState->UpdateViewCursor(fView, fMousePos); + + return true; } @@ -725,17 +723,3 @@ TransformBox::_NotifyDeleted() const } } - -// #pragma mark - - - -// _SetState -void -TransformBox::_SetState(DragState* state) -{ - if (state != fCurrentState) { - fCurrentState = state; - fCurrentState->UpdateViewCursor(fView, fMousePos); - } -} - diff --git a/src/apps/icon-o-matic/transformable/TransformBox.h b/src/apps/icon-o-matic/transformable/TransformBox.h index 140c3c9a49..3af867be45 100644 --- a/src/apps/icon-o-matic/transformable/TransformBox.h +++ b/src/apps/icon-o-matic/transformable/TransformBox.h @@ -125,8 +125,6 @@ class TransformBox : public ChannelTransform, void _NotifyDeleted() const; // "static" state objects - void _SetState(DragState* state); - StateView* fView; DragState* fDragLTState;