From 2fb8dc546300f278255c0a5ee339b6a9c7e89d48 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 26 Sep 2025 14:47:24 -0500 Subject: rm more stuff --- humanTable.go | 2 ++ tablePB.go | 18 ++---------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/humanTable.go b/humanTable.go index 295478d..e94fcb3 100644 --- a/humanTable.go +++ b/humanTable.go @@ -60,6 +60,7 @@ func StandardTableRowDebug(sizes []int, args []string) (string, string) { return StandardTableRow(sizes, args) } +/* func StandardTableSize5(sizes []int, args []string) string { WIDTH, _ := getTerminalWidth() var s string @@ -83,6 +84,7 @@ func StandardTableSize5(sizes []int, args []string) string { all := fmt.Sprintf(s, arg1, arg2, arg3, arg4, arg5) return all[0:WIDTH] } +*/ func StandardTableSize10(sizes []int, args []string) string { WIDTH, _ := getTerminalWidth() diff --git a/tablePB.go b/tablePB.go index e09f869..c30baf6 100644 --- a/tablePB.go +++ b/tablePB.go @@ -50,6 +50,8 @@ func PrintTable(pb *guipb.Table) { for _, col := range pb.AnyCols { if val, ok := getAnyCell(col, i); ok { cells = append(cells, val) + } else { + log.Info("cobol TABLE CELL FAILED", col.Header.Name, i, val, ok) } } line, fmtline := StandardTableRow(sizes, cells) @@ -60,10 +62,6 @@ func PrintTable(pb *guipb.Table) { } } -func makeGridLabel(pb *guipb.Widget, w int, h int) { - log.Info("MAKE GRID LABEL", w, h, pb.Name) -} - func extractInt64(anyVal *anypb.Any) (int64, error) { val := &wrapperspb.Int64Value{} if err := anyVal.UnmarshalTo(val); err != nil { @@ -118,15 +116,3 @@ func getAnyCell(col *guipb.AnyCol, row int) (string, bool) { // s := shell.FormatDuration(time.Since(cellTime.AsTime())) return "fixme", true } - -func getColAttr(t *guipb.Table, name string) (string, *guipb.ColAttr, int) { - // find the Column that matches the "name" - for _, r := range t.AnyCols { - if name != r.Header.Name { - // log.Info("skip sint row:", r.Header.Name, "!=", name) - continue - } - return r.Header.Name, r.Attr, len(r.Vals) - } - return "", nil, 0 -} -- cgit v1.2.3