Codebase list golang-github-vbauerster-mpb / e17ac3d
Remove unused struct type Vladimir Bauer 7 years ago
1 changed file(s) with 21 addition(s) and 28 deletion(s). Raw diff Collapse all Expand all
2828 done chan struct{}
2929 }
3030
31 type (
32 pState struct {
33 bHeap *priorityQueue
34 shutdownPending []*Bar
35 heapUpdated bool
36 zeroWait bool
37 idCounter int
38 width int
39 format string
40 rr time.Duration
41 cw *cwriter.Writer
42 ticker *time.Ticker
43 pMatrix map[int][]chan int
44 aMatrix map[int][]chan int
45
46 // following are provided by user
47 uwg *sync.WaitGroup
48 cancel <-chan struct{}
49 shutdownNotifier chan struct{}
50 waitBars map[*Bar]*Bar
51 debugOut io.Writer
52 }
53 widthSyncer struct {
54 // Public for easy testing
55 Accumulator []chan int
56 Distributor []chan int
57 }
58 )
31 type pState struct {
32 bHeap *priorityQueue
33 shutdownPending []*Bar
34 heapUpdated bool
35 zeroWait bool
36 idCounter int
37 width int
38 format string
39 rr time.Duration
40 cw *cwriter.Writer
41 ticker *time.Ticker
42 pMatrix map[int][]chan int
43 aMatrix map[int][]chan int
44
45 // following are provided by user
46 uwg *sync.WaitGroup
47 cancel <-chan struct{}
48 shutdownNotifier chan struct{}
49 waitBars map[*Bar]*Bar
50 debugOut io.Writer
51 }
5952
6053 // New creates new Progress instance, which orchestrates bars rendering process.
6154 // Accepts mpb.ProgressOption funcs for customization.