From 555c9b65f56f4b7681fcaf12a14ec3544027da00 Mon Sep 17 00:00:00 2001 From: Meredith Lancaster Date: Wed, 15 Jan 2025 14:13:16 -0700 Subject: [PATCH] drop unused handler method Signed-off-by: Meredith Lancaster --- pkg/cmd/attestation/io/handler.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/pkg/cmd/attestation/io/handler.go b/pkg/cmd/attestation/io/handler.go index 1e5114040..3cbfc656a 100644 --- a/pkg/cmd/attestation/io/handler.go +++ b/pkg/cmd/attestation/io/handler.go @@ -4,7 +4,6 @@ import ( "fmt" "strings" - "github.com/cli/cli/v2/internal/tableprinter" "github.com/cli/cli/v2/pkg/iostreams" "github.com/cli/cli/v2/utils" ) @@ -84,23 +83,3 @@ func (h *Handler) PrintBulletPoints(rows [][]string) (int, error) { } return fmt.Fprintln(h.IO.ErrOut, info) } - -func (h *Handler) PrintTable(headers []string, rows [][]string) error { - if !h.IO.IsStdoutTTY() { - return nil - } - - t := tableprinter.New(h.IO, tableprinter.WithHeader(headers...)) - - for _, row := range rows { - for _, field := range row { - t.AddField(field, tableprinter.WithTruncate(nil)) - } - t.EndRow() - } - - if err := t.Render(); err != nil { - return fmt.Errorf("failed to print output: %v", err) - } - return nil -}