Skip to content

Commit 047cd75

Browse files
committed
These are not necessary and impose a huge performance hit during scrolling
1 parent f462446 commit 047cd75

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

SWTableViewCell/PodFiles/SWTableViewCell.m

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,6 @@ - (void)setLeftUtilityButtons:(NSArray *)leftUtilityButtons
242242
_leftUtilityButtons = leftUtilityButtons;
243243

244244
self.leftUtilityButtonsView.utilityButtons = leftUtilityButtons;
245-
246-
[self.leftUtilityButtonsView layoutIfNeeded];
247-
[self layoutIfNeeded];
248245
}
249246
}
250247

@@ -253,9 +250,6 @@ - (void)setLeftUtilityButtons:(NSArray *)leftUtilityButtons WithButtonWidth:(CGF
253250
_leftUtilityButtons = leftUtilityButtons;
254251

255252
[self.leftUtilityButtonsView setUtilityButtons:leftUtilityButtons WithButtonWidth:width];
256-
257-
[self.leftUtilityButtonsView layoutIfNeeded];
258-
[self layoutIfNeeded];
259253
}
260254

261255
- (void)setRightUtilityButtons:(NSArray *)rightUtilityButtons
@@ -264,9 +258,6 @@ - (void)setRightUtilityButtons:(NSArray *)rightUtilityButtons
264258
_rightUtilityButtons = rightUtilityButtons;
265259

266260
self.rightUtilityButtonsView.utilityButtons = rightUtilityButtons;
267-
268-
[self.rightUtilityButtonsView layoutIfNeeded];
269-
[self layoutIfNeeded];
270261
}
271262
}
272263

@@ -275,9 +266,6 @@ - (void)setRightUtilityButtons:(NSArray *)rightUtilityButtons WithButtonWidth:(C
275266
_rightUtilityButtons = rightUtilityButtons;
276267

277268
[self.rightUtilityButtonsView setUtilityButtons:rightUtilityButtons WithButtonWidth:width];
278-
279-
[self.rightUtilityButtonsView layoutIfNeeded];
280-
[self layoutIfNeeded];
281269
}
282270

283271
#pragma mark - UITableViewCell overrides

0 commit comments

Comments
 (0)