Remove unecessary landscape check
Signed-off-by: Jeremiah Miller <jmil@tuta.io>
This commit is contained in:
parent
dd0fbc1d0e
commit
2489694e58
3 changed files with 0 additions and 10 deletions
|
@ -265,7 +265,6 @@ void Framework::OnViewportChanged(ScreenBase const & screen)
|
|||
m_trafficManager.UpdateViewport(m_currentModelView);
|
||||
m_transitManager.UpdateViewport(m_currentModelView);
|
||||
m_isolinesManager.UpdateViewport(m_currentModelView);
|
||||
m_routingManager.RoutingSession().SetIsLandscape(m_currentModelView.GetWidth() > m_currentModelView.GetHeight());
|
||||
|
||||
if (m_viewportChangedFn != nullptr)
|
||||
m_viewportChangedFn(screen);
|
||||
|
|
|
@ -728,12 +728,6 @@ void RoutingSession::SetTurnNotificationsUnits(measurement_utils::Units const un
|
|||
m_turnNotificationsMgr.SetLengthUnits(units);
|
||||
}
|
||||
|
||||
void RoutingSession::SetIsLandscape(bool isLandscape)
|
||||
{
|
||||
CHECK_THREAD_CHECKER(m_threadChecker, ());
|
||||
m_isLandscape = isLandscape;
|
||||
}
|
||||
|
||||
void RoutingSession::SetTurnNotificationsLocale(std::string const & locale)
|
||||
{
|
||||
CHECK_THREAD_CHECKER(m_threadChecker, ());
|
||||
|
|
|
@ -143,8 +143,6 @@ public:
|
|||
std::string GetTurnNotificationsLocale() const;
|
||||
void SetLocaleWithJsonForTesting(std::string const & json, std::string const & locale);
|
||||
|
||||
void SetIsLandscape(bool isLandscape);
|
||||
|
||||
void EmitCloseRoutingEvent() const;
|
||||
|
||||
void RouteCall(RouteCallback const & callback) const;
|
||||
|
@ -210,7 +208,6 @@ private:
|
|||
m2::PointD m_userCurrentPosition;
|
||||
bool m_userCurrentPositionValid = false;
|
||||
|
||||
bool m_isLandscape = false;
|
||||
// Sound turn notification parameters.
|
||||
turns::sound::NotificationManager m_turnNotificationsMgr;
|
||||
|
||||
|
|
Reference in a new issue