Remove unnecessary conditions

This commit is contained in:
WenchaoD 2017-02-22 16:43:08 +08:00
parent 336c99c2de
commit 22887af7cd
1 changed files with 2 additions and 6 deletions

View File

@ -78,12 +78,8 @@ open class FSPageControl: UIControl {
return
}
let pageControl = Unmanaged<FSPageControl>.fromOpaque(info).takeUnretainedValue()
if pageControl.needsCreateIndicators {
pageControl.createIndicatorsIfNecessary()
}
if pageControl.needsUpdateIndicators {
pageControl.updateIndicatorsIfNecessary()
}
pageControl.createIndicatorsIfNecessary()
pageControl.updateIndicatorsIfNecessary()
}
public override init(frame: CGRect) {