Permalink
Browse files

Remove unnecessary code

It was unnecessary to grab the 0th subview, which is the internalTextView anyway.
  • Loading branch information...
1 parent 83a5fbd commit e0eae645ac97b3a0c713cf64ea70111ea244c471 @mattjgalloway mattjgalloway committed May 28, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 class/HPGrowingTextView.m
@@ -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;

0 comments on commit e0eae64

Please sign in to comment.