Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
It was unnecessary to grab the 0th subview, which is the internalTextView anyway.
  • Loading branch information
mattjgalloway committed May 28, 2012
1 parent 83a5fbd commit e0eae64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions class/HPGrowingTextView.m
Expand Up @@ -78,8 +78,7 @@ -(void)commonInitialiser
internalTextView.text = @"-";
[self addSubview:internalTextView];

UIView *internal = (UIView*)[[internalTextView subviews] objectAtIndex:0];
minHeight = internal.frame.size.height;
minHeight = internalTextView.frame.size.height;
minNumberOfLines = 1;

animateHeightChange = YES;
Expand Down

0 comments on commit e0eae64

Please sign in to comment.