Skip to content

Commit

Permalink
Minor cleanup in LabsViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
cdzombak committed Feb 3, 2012
1 parent ba19714 commit ccac253
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions CAENLabStatus/DZCLabsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
default: {
NSLog(@"Unknown section encountered: %d", indexPath.section);
assert(0);
break;
}
}

Expand Down Expand Up @@ -209,10 +208,6 @@ - (void)loadData
for (id lab in sortedKeys) {
DZCLabStatus status = [(NSNumber *)[labs objectForKey:lab] intValue];

if ([[lab building ] isEqualToString:@"SEB"]) {
NSLog(@"SEB");
}

switch(status) {
case DZCLabStatusOpen:
[(NSMutableArray *)[self.labs objectAtIndex:DZCLabsTableViewSectionOpen] addObject:lab];
Expand Down Expand Up @@ -260,7 +255,7 @@ - (NSArray *)labs
if(!_labs) {
_labs = [NSMutableArray array];

// TODO there must be a better way to build a 2D array of NSArray
// TODO there must be a better way to build a 2D NSArray
for (int i=0; i<DZCLabsTableViewNumSections; ++i) {
[(NSMutableArray *)_labs addObject:[NSMutableArray array]];
}
Expand Down

0 comments on commit ccac253

Please sign in to comment.