Skip to content

Commit

Permalink
Unused method receiver removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
cinar committed Dec 19, 2023
1 parent a594d56 commit c552578
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions helper/annotation_report_column.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ func NewAnnotationReportColumn(values <-chan string) ReportColumn {
}

// Name returns the name of the report column.
func (c *annotationReportColumn) Name() string {
func (*annotationReportColumn) Name() string {
return ""
}

// Type returns number as the data type.
func (c *annotationReportColumn) Type() string {
func (*annotationReportColumn) Type() string {
return "string"
}

// Role returns the role of the report column.
func (c *annotationReportColumn) Role() string {
func (*annotationReportColumn) Role() string {
return "annotation"
}

Expand Down
4 changes: 2 additions & 2 deletions helper/numeric_report_column.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ func (c *numericReportColumn[T]) Name() string {
}

// Type returns number as the data type.
func (c *numericReportColumn[T]) Type() string {
func (*numericReportColumn[T]) Type() string {
return "number"
}

// Role returns the role of the report column.
func (c *numericReportColumn[T]) Role() string {
func (*numericReportColumn[T]) Role() string {
return "data"
}

Expand Down
4 changes: 2 additions & 2 deletions trend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The information provided on this project is strictly for informational purposes
- [func \(a \*Aroon\[T\]\) Compute\(high, low \<\-chan T\) \(\<\-chan T, \<\-chan T\)](<#Aroon[T].Compute>)
- [type Bop](<#Bop>)
- [func NewBop\[T helper.Number\]\(\) \*Bop\[T\]](<#NewBop>)
- [func \(b \*Bop\[T\]\) Compute\(opening, high, low, closing \<\-chan T\) \<\-chan T](<#Bop[T].Compute>)
- [func \(\*Bop\[T\]\) Compute\(opening, high, low, closing \<\-chan T\) \<\-chan T](<#Bop[T].Compute>)
- [type Ema](<#Ema>)
- [func NewEma\[T helper.Number\]\(\) \*Ema\[T\]](<#NewEma>)
- [func \(ema \*Ema\[T\]\) Compute\(c \<\-chan T\) \<\-chan T](<#Ema[T].Compute>)
Expand Down Expand Up @@ -272,7 +272,7 @@ NewBop function initializes a new BOP instance with the default parameters.
### func \(\*Bop\[T\]\) [Compute](<https://github.com/cinar/indicator/blob/v2/trend/bop.go#L27>)

```go
func (b *Bop[T]) Compute(opening, high, low, closing <-chan T) <-chan T
func (*Bop[T]) Compute(opening, high, low, closing <-chan T) <-chan T
```

Compute processes a channel of open, high, low, and close values, computing the BOP for each entry.
Expand Down
2 changes: 1 addition & 1 deletion trend/bop.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ func NewBop[T helper.Number]() *Bop[T] {

// Compute processes a channel of open, high, low, and close values,
// computing the BOP for each entry.
func (b *Bop[T]) Compute(opening, high, low, closing <-chan T) <-chan T {
func (*Bop[T]) Compute(opening, high, low, closing <-chan T) <-chan T {
return helper.Divide(helper.Subtract(closing, opening), helper.Subtract(high, low))
}

0 comments on commit c552578

Please sign in to comment.