Skip to content

Commit

Permalink
[remove] remove unused property
Browse files Browse the repository at this point in the history
  • Loading branch information
mengtian-li authored and limengtian committed Aug 19, 2017
1 parent 7ae17ed commit 165dbfb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions MTSegmentControlSample/MTSegmentControl/MTSegmentedControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ @interface MTSegmentedControl ()<MTSegmentedButtonDelegate>
@property (nonatomic, strong) NSMutableArray <MTSegmentedButton *> * buttons;
@property (nonatomic, copy) NSArray <NSString *> * items;

@property (nonatomic) CGFloat itemWidth;
@property (nonatomic, strong) UIView *contentView;

@end
Expand All @@ -51,7 +50,6 @@ - (instancetype)initWithItem:(NSArray<NSString *> *)items {
if (self) {
self.items = items;

_itemWidth = 0.0;
_selectedSegmentIndex = 0;

[self setupDefaultConfiguration];
Expand Down Expand Up @@ -92,7 +90,6 @@ - (void)setupSubViews {
button.delegate = self;
[self button:button setTitle:item];
[button sizeToFit];
_itemWidth = button.frame.size.width > _itemWidth ? button.frame.size.width : _itemWidth;
if (_selectedSegmentIndex == i) {
button.type = MTSegmentControlButtonTypeSelected;
} else {
Expand Down

0 comments on commit 165dbfb

Please sign in to comment.