From 2496c8bd34b0b93768d6089c3586187b0600f6ca Mon Sep 17 00:00:00 2001 From: Chanil Kim Date: Wed, 16 Dec 2015 06:13:09 +0900 Subject: [PATCH] Remove useless parentheses causing swift build error - "Expression was too complex to be solved in reasonable time" --- Charts/Classes/Animation/ChartAnimationEasing.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Charts/Classes/Animation/ChartAnimationEasing.swift b/Charts/Classes/Animation/ChartAnimationEasing.swift index 9614a7969d..d54d01e031 100644 --- a/Charts/Classes/Animation/ChartAnimationEasing.swift +++ b/Charts/Classes/Animation/ChartAnimationEasing.swift @@ -341,7 +341,7 @@ internal struct EasingFunctions let s: NSTimeInterval = 1.70158 var position: NSTimeInterval = elapsed / duration position-- - return CGFloat( (position * position * ((s + 1.0) * position + s) + 1.0) ) + return CGFloat( position * position * ((s + 1.0) * position + s) + 1.0 ) } internal static let EaseInOutBack = { (elapsed: NSTimeInterval, duration: NSTimeInterval) -> CGFloat in @@ -391,4 +391,4 @@ internal struct EasingFunctions } return EaseOutBounce(elapsed * 2.0 - duration, duration) * 0.5 + 0.5 } -} \ No newline at end of file +}