Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitribouniol committed Oct 2, 2014
1 parent b4e897a commit ff3ecc3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
8 changes: 0 additions & 8 deletions Classes/MDSpreadView.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,6 @@ extern NSString *MDSpreadViewSelectionDidChangeNotification __attribute__((unava

// Done with new algorithm

NSMutableArray *visibleCells; // array of array
MDIndexPath *_visibleRowIndexPath;
MDIndexPath *_visibleColumnIndexPath;
CGRect visibleBounds;

MDIndexPath *_headerRowIndexPath;
MDIndexPath *_headerColumnIndexPath;

NSMutableArray *_rowSections;
NSMutableArray *_columnSections;

Expand Down
13 changes: 0 additions & 13 deletions Classes/MDSpreadView.m
Original file line number Diff line number Diff line change
Expand Up @@ -610,12 +610,6 @@ - (void)_clearAllCells;

- (void)_setNeedsReloadData;

@property (nonatomic, strong) MDIndexPath *_visibleRowIndexPath;
@property (nonatomic, strong) MDIndexPath *_visibleColumnIndexPath;

@property (nonatomic, strong) MDIndexPath *_headerRowIndexPath;
@property (nonatomic, strong) MDIndexPath *_headerColumnIndexPath;

@property (nonatomic, strong) NSMutableArray *_rowSections;
@property (nonatomic, strong) NSMutableArray *_columnSections;

Expand All @@ -640,7 +634,6 @@ + (NSDictionary *)MDAboutControllerTextCreditDictionary
#pragma mark - Setup

@synthesize dataSource=_dataSource;
@synthesize _visibleRowIndexPath, _visibleColumnIndexPath, _headerRowIndexPath, _headerColumnIndexPath;
@synthesize selectionMode, _rowSections, _columnSections;
@synthesize _currentSelection, allowsMultipleSelection, allowsSelection, columnResizing, rowResizing;

Expand All @@ -667,7 +660,6 @@ - (void)_performInit
self.directionalLockEnabled = YES;

_dequeuedCells = [[NSMutableArray alloc] init];
// visibleCells = [[NSMutableArray alloc] init];

mapForContent = [[MDSpreadViewCellMap alloc] init];
mapForColumnHeaders = [[MDSpreadViewCellMap alloc] init];
Expand Down Expand Up @@ -962,16 +954,11 @@ - (void)reloadData

[self _clearAllCells];

visibleBounds.size = CGSizeZero;

minColumnIndexPath = nil;
maxColumnIndexPath = nil;
minRowIndexPath = nil;
maxRowIndexPath = nil;

self._visibleColumnIndexPath = nil;
self._visibleRowIndexPath = nil;

NSMutableArray *newColumnSections = [[NSMutableArray alloc] init];

for (NSUInteger i = 0; i < numberOfColumnSections; i++) {
Expand Down

0 comments on commit ff3ecc3

Please sign in to comment.