Remove unnecessary conditions
This commit is contained in:
parent
336c99c2de
commit
22887af7cd
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue