Codebase list golang-github-vbauerster-mpb / 23769ee
Remove all deprecated methods Vladimir Bauer 8 years ago
3 changed file(s) with 0 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
131131 // Increment is a shorthand for b.IncrBy(1)
132132 func (b *Bar) Increment() {
133133 b.IncrBy(1)
134 }
135
136 // Incr Deprecated! Use IncrBy(int) or Increment() instead
137 func (b *Bar) Incr(n int) {
138 b.IncrBy(n)
139134 }
140135
141136 // IncrBy increments progress bar by amount of n
4646 // DecoratorFunc is a function that can be prepended and appended to the progress bar
4747 type DecoratorFunc func(s *Statistics, widthAccumulator chan<- int, widthDistributor <-chan int) string
4848
49 // Name deprecated, use StaticName instead
50 func Name(name string, minWidth int, conf byte) DecoratorFunc {
51 return StaticName(name, minWidth, conf)
52 }
53
5449 // StaticName to be used, when there is no plan to change the name during whole
5550 // life of a progress rendering process
5651 func StaticName(name string, minWidth int, conf byte) DecoratorFunc {
136136 return
137137 }
138138 <-p.done
139 }
140
141 // Stop deprecated, use Progress.Wait instead.
142 func (p *Progress) Stop() {
143 p.Wait()
144139 }
145140
146141 func newWidthSyncer(timeout <-chan struct{}, numBars, numColumn int) *widthSyncer {