diff --git a/iphone/Maps/Classes/MapViewController.h b/iphone/Maps/Classes/MapViewController.h index b296c882b9..094ac01919 100644 --- a/iphone/Maps/Classes/MapViewController.h +++ b/iphone/Maps/Classes/MapViewController.h @@ -30,12 +30,8 @@ bool m_mapIsVisible; } -- (id) initWithCoder: (NSCoder *)coder; - - (void) ZoomToRect: (m2::RectD const &) rect; -//- (void) UpdateIcon: (NSTimer *)theTimer; - - (void) onResize: (GLint)width withHeight: (GLint)height; - (void) onPaint; @@ -49,7 +45,5 @@ - (IBAction)OnGuideClicked:(id)sender; @property (nonatomic, retain) IBOutlet UIBarButtonItem * m_myPositionButton; -@property (nonatomic, retain) NSTimer * m_iconTimer; -@property (nonatomic, assign) int m_iconSequenceNumber; @end diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index 745bf96df8..a204df06ab 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -17,8 +17,6 @@ typedef Framework framework_t; @implementation MapViewController @synthesize m_myPositionButton; -@synthesize m_iconTimer; -@synthesize m_iconSequenceNumber; // @TODO Make m_framework and m_storage MapsAppDelegate properties instead of global variables. framework_t * m_framework = NULL; @@ -30,27 +28,6 @@ storage::Storage m_storage; m_framework->ShowRect(rect); } -- (void)UpdateIcon:(NSTimer *)theTimer -{ -/* m_iconSequenceNumber = (m_iconSequenceNumber + 1) % 8; - - int iconNum = m_iconSequenceNumber; - if (iconNum > 4) - iconNum = 8 - iconNum; - - NSString * iconName = [[NSString alloc] initWithFormat:@"location-%d.png", iconNum]; - m_myPositionButton.image = [UIImage imageNamed:iconName]; - [iconName release]; - - [m_iconTimer invalidate]; - m_iconTimer = [NSTimer scheduledTimerWithTimeInterval:0.1f - target:self - selector:@selector(UpdateIcon:) - userInfo:nil - repeats:NO]; - */ -} - - (void)OnLocationUpdated { m_myPositionButton.image = [UIImage imageNamed:@"location.png"];