summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthieu <matthieu.cneude@gmail.com>2020-04-28 19:18:25 +0200
committermatthieu <matthieu.cneude@gmail.com>2020-04-28 19:18:25 +0200
commitf179b8b426d6fd1eab5fead4fdd6b5a0a2f6557f (patch)
tree4c22d4f2fce65e53cb98f24146bfb4292e77fcaa
parenta3a32565243f9e7f84f8131fbaf6532c7db70b4b (diff)
Get rid of debug println
-rw-r--r--internal/platform/termui.go2
-rw-r--r--internal/tui.go3
2 files changed, 0 insertions, 5 deletions
diff --git a/internal/platform/termui.go b/internal/platform/termui.go
index 22e4550..bf227ef 100644
--- a/internal/platform/termui.go
+++ b/internal/platform/termui.go
@@ -127,7 +127,6 @@ func (t *termUI) BarChart(
bc.Buffer()
t.widgets = append(t.widgets, bc)
- fmt.Println("WIDGET APPENDED")
}
// StackedBarChar widget type.
@@ -209,7 +208,6 @@ func (t *termUI) Loop() {
// Render termui and delete the instance of the widgets rendered.
func (t *termUI) Render() {
termui.Render(t.body)
- fmt.Printf("%+v\n", t)
// delete every widget for the rows / cols rendered.
t.removeWidgets()
}
diff --git a/internal/tui.go b/internal/tui.go
index 8ceea3e..bf34a82 100644
--- a/internal/tui.go
+++ b/internal/tui.go
@@ -2,7 +2,6 @@
package internal
import (
- "fmt"
"strconv"
"strings"
"sync"
@@ -371,7 +370,6 @@ func (t *Tui) AddBarChart(
title string,
options map[string]string,
) {
- fmt.Println("BEGIN ADD BAR CHART")
var height int64 = 10
if _, ok := options[optionHeight]; ok {
height, _ = strconv.ParseInt(options[optionHeight], 0, 0)
@@ -402,7 +400,6 @@ func (t *Tui) AddBarChart(
int(barWidth),
ce.barColor,
)
- fmt.Println("END ADD BAR CHART")
}
// AddStackedBarChart to the TUI, which represent two or more dataset overtime.