Skip to content

Commit

Permalink
REmove redunant code
Browse files Browse the repository at this point in the history
  • Loading branch information
brung committed Feb 26, 2015
1 parent 3366e72 commit 9c79bce
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions unnamed/PhotoAnswerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ - (void)setAnswer:(Answer *)answer andTotalVotes:(NSInteger)total {
self.barView.percent = percent;
}

- (void)layoutSubviews {
self.photoView.image = self.answer.photo;
float percent = self.totalVotes > 0 ? (float)self.answer.count / (float)self.totalVotes : 0;
self.barView.percent = percent;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
Expand Down

0 comments on commit 9c79bce

Please sign in to comment.