Skip to content

Commit e85250e

Browse files
committed
Remove invoice and plays from Printer struct
1 parent 6ed0d03 commit e85250e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

refactoring/theatre-practice/statement.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ import (
77
"github.com/leekchan/accounting"
88
)
99

10-
type StatementPrinter struct {
11-
plays map[string]Play
12-
invoice Invoice
13-
}
10+
type StatementPrinter struct{}
1411

1512
type StatementData struct {
1613
Customer string
@@ -28,9 +25,6 @@ type EnrichedPerformance struct {
2825
}
2926

3027
func (s StatementPrinter) Print(invoice Invoice, plays map[string]Play) (string, error) {
31-
s.plays = plays
32-
s.invoice = invoice
33-
3428
statementData := StatementData{}
3529
statementData.plays = plays
3630
statementData.Customer = invoice.Customer

0 commit comments

Comments
 (0)