Remove unused struct type
Vladimir Bauer
7 years ago
| 28 | 28 | done chan struct{} |
| 29 | 29 | } |
| 30 | 30 | |
| 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 | } | |
| 59 | 52 | |
| 60 | 53 | // New creates new Progress instance, which orchestrates bars rendering process. |
| 61 | 54 | // Accepts mpb.ProgressOption funcs for customization. |