indicator: drop ssf unused func

This commit is contained in:
c9s 2023-06-01 14:54:25 +08:00
parent 66d99ce6ae
commit b0abc1bf55
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -80,9 +80,6 @@ func (inc *SSF) Index(i int) float64 {
}
func (inc *SSF) Length() int {
if inc.Values == nil {
return 0
}
return inc.Values.Length()
}
@ -104,14 +101,3 @@ func (inc *SSF) CalculateAndUpdate(allKLines []types.KLine) {
inc.EmitUpdate(inc.Last(0))
}
}
func (inc *SSF) handleKLineWindowUpdate(interval types.Interval, window types.KLineWindow) {
if inc.Interval != interval {
return
}
inc.CalculateAndUpdate(window)
}
func (inc *SSF) Bind(updater KLineWindowUpdater) {
updater.OnKLineWindowUpdate(inc.handleKLineWindowUpdate)
}