Permalink
Browse files

removed duplicate code

  • Loading branch information...
kgn committed Jan 17, 2013
1 parent bda5c44 commit 65d938c03419481d3ed475b8962ffe99574ba24c
Showing with 0 additions and 9 deletions.
  1. +0 −9 InAppSettings/Cells/InAppSettingsPSToggleSwitchSpecifierCell.m
@@ -79,13 +79,4 @@ - (void)setupCell{
[self.contentView addSubview:self.valueSwitch];
}
-- (void)layoutSubviews{
- [super layoutSubviews];
-
- CGRect valueSwitchFrame = self.valueSwitch.frame;
- valueSwitchFrame.origin.y = (CGFloat)round(CGRectGetMidY(self.contentView.bounds)-CGRectGetMidY(self.valueSwitch.bounds))-InAppSettingsOffsetY;
- valueSwitchFrame.origin.x = (CGFloat)round(CGRectGetWidth(self.contentView.bounds)-CGRectGetWidth(self.valueSwitch.bounds))-InAppSettingsCellPadding;
- self.valueSwitch.frame = valueSwitchFrame;
-}
-
@end

0 comments on commit 65d938c

Please sign in to comment.