summaryrefslogtreecommitdiff
path: root/tablePB.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-26 14:47:24 -0500
committerJeff Carr <[email protected]>2025-09-26 14:47:24 -0500
commit2fb8dc546300f278255c0a5ee339b6a9c7e89d48 (patch)
treed0d37a99379d041e38a90e1bcafc409391472ff5 /tablePB.go
parent3c8fa2cb3cbb49dc0f526dfa7536eadd601e9ccc (diff)
rm more stuffv0.0.11
Diffstat (limited to 'tablePB.go')
-rw-r--r--tablePB.go18
1 files changed, 2 insertions, 16 deletions
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
-}