diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-10-08 11:35:23 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:29:37 +0300 |
commit | b0a390f1943873f12153e7bf0282198e9bc0ff43 (patch) | |
tree | 8b1cb96c232c15aadb258b07ee1a8d2606b8d5ef /map/location_state.cpp | |
parent | 943dc568bcaaba64ad1048d9e7b3142cfe162484 (diff) |
[core] remove useless code
Diffstat (limited to 'map/location_state.cpp')
-rw-r--r-- | map/location_state.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/map/location_state.cpp b/map/location_state.cpp index f83aeeb408..1e17a17842 100644 --- a/map/location_state.cpp +++ b/map/location_state.cpp @@ -765,52 +765,8 @@ void State::OnSize(m2::RectD const & /*oldPixelRect*/) } } -namespace -{ - -#ifdef DEBUG -bool ValidateTransition(State::Mode oldMode, State::Mode newMode) -{ - if (oldMode == State::UnknownPosition) - return newMode == State::PendingPosition; - - if (oldMode == State::PendingPosition) - { - return newMode == State::UnknownPosition || - newMode == State::NotFollow || - newMode == State::Follow; - } - - if (oldMode == State::Follow) - { - return newMode == State::UnknownPosition || - newMode == State::NotFollow || - newMode == State::RotateAndFollow; - } - - if (oldMode == State::NotFollow) - { - return newMode == State::Follow || - newMode == State::RotateAndFollow; - } - - if (oldMode == State::RotateAndFollow) - { - return newMode == State::NotFollow || - newMode == State::Follow || - newMode == State::UnknownPosition; - } - - return false; -} -#endif - -} - void State::AnimateStateTransition(Mode oldMode, Mode newMode) { - ASSERT(ValidateTransition(oldMode, newMode), ("from", oldMode, "to", newMode)); - StopAllAnimations(); if (oldMode == PendingPosition && newMode == Follow) |