From 930ff68bb2b2f5249429ff4843c8e32bb40c66c3 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Thu, 30 Dec 2021 00:42:37 +0100 Subject: [PATCH] refactor: drop unused function --- pkg/formatter/formatter.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/formatter/formatter.go b/pkg/formatter/formatter.go index ff6ea25c..0f6a9a84 100644 --- a/pkg/formatter/formatter.go +++ b/pkg/formatter/formatter.go @@ -1,12 +1,10 @@ package formatter import ( - "fmt" "os" "strings" "time" - "github.com/docker/cli/cli/command/formatter" "github.com/docker/go-units" "github.com/olekukonko/tablewriter" "github.com/schollz/progressbar/v3" @@ -16,10 +14,6 @@ func ShortenID(str string) string { return str[:12] } -func Truncate(str string) string { - return fmt.Sprintf(`"%s"`, formatter.Ellipsis(str, 19)) -} - func SmallSHA(hash string) string { return hash[:8] }