From c78bde2c058f204047486f41e44eef7da9cd23de Mon Sep 17 00:00:00 2001 From: Brian Prescott Date: Fri, 7 Nov 2014 15:48:35 -0500 Subject: [PATCH] Fixed some static code analysis warnings --- Classes/MDSpreadView.h | 8 ++++---- Classes/MDSpreadView.m | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Classes/MDSpreadView.h b/Classes/MDSpreadView.h index cff9e3d..b72332c 100644 --- a/Classes/MDSpreadView.h +++ b/Classes/MDSpreadView.h @@ -175,8 +175,8 @@ extern NSString *MDSpreadViewSelectionDidChangeNotification __attribute__((unava NSMutableArray *columnSections; NSMutableArray *rowSections; - UIView *dummyView; - UIView *dummyViewB; +// UIView *dummyView; +// UIView *dummyViewB; CGSize dequeuedCellSizeHint; MDIndexPath *dequeuedCellRowIndexHint; @@ -188,7 +188,7 @@ extern NSString *MDSpreadViewSelectionDidChangeNotification __attribute__((unava // Done with new algorithm - NSMutableArray *visibleCells; // array of array +// NSMutableArray *visibleCells; // array of array MDIndexPath *_visibleRowIndexPath; MDIndexPath *_visibleColumnIndexPath; CGRect visibleBounds; @@ -196,7 +196,7 @@ extern NSString *MDSpreadViewSelectionDidChangeNotification __attribute__((unava NSMutableArray *_headerRowCells; NSMutableArray *_headerColumnCells; MDSpreadViewCell *_headerCornerCell; - CGRect _headerBounds; +// CGRect _headerBounds; MDIndexPath *_headerRowIndexPath; MDIndexPath *_headerColumnIndexPath; diff --git a/Classes/MDSpreadView.m b/Classes/MDSpreadView.m index 178e243..584834c 100644 --- a/Classes/MDSpreadView.m +++ b/Classes/MDSpreadView.m @@ -3924,12 +3924,10 @@ - (void)_touchesEndedInCell:(MDSpreadViewCell *)cell MDSpreadViewSelectionMode resolvedSelectionMode = MDSpreadViewSelectionModeAutomatic; - BOOL override = NO; MDSortDescriptor *sortDescriptorPrototype = nil; if (_autoAllowSortableHeaderSelection) { if ([(MDSpreadViewHeaderCell *)cell respondsToSelector:@selector(sortDescriptorPrototype)] && [(MDSpreadViewHeaderCell *)cell sortDescriptorPrototype]) { sortDescriptorPrototype = [(MDSpreadViewHeaderCell *)cell sortDescriptorPrototype]; - override = YES; resolvedSelectionMode = MDSpreadViewSelectionModeCell + sortDescriptorPrototype.sortAxis; }