Skip to content

Commit

Permalink
cornerRadius can be negative. Remove comment reminding me to verify t…
Browse files Browse the repository at this point in the history
…hat is the case.

Reviewers: featherless, #mux

Reviewed By: featherless, #mux

Projects: #mux, #material_components_ios, #material_shadows

Differential Revision: http://mux-oss-phabricator.appspot.com/D32
  • Loading branch information
Ian Gordon committed Nov 25, 2015
1 parent 4e1b455 commit a7e2b38
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ShadowLayer/src/MDCShadowLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ - (void)renderInContext:(CGContextRef)ctx {
/** Returns a shadowPath based on the layer properties. */
- (UIBezierPath *)defaultShadowPath {
CGFloat cornerRadius = self.cornerRadius;
// TODO(iangordon): Verify corner radius *can* be negative, even if that has no visual effect. If
// not, we can return this to this original if (0.0 != cornerRadius) and suppress the associated
// warning.
if (0.0 < cornerRadius) {
return [UIBezierPath bezierPathWithRoundedRect:self.bounds cornerRadius:cornerRadius];
}
Expand Down

0 comments on commit a7e2b38

Please sign in to comment.