From 8ccb7a74aa1b5c528d7b820e00b3ca265e88481f Mon Sep 17 00:00:00 2001 From: Dylan Ratcliffe Date: Tue, 12 Nov 2024 19:27:22 +0000 Subject: [PATCH] Removed unused code --- cmd/changes_submit_plan.go | 5 ----- cmd/logging.go | 10 ---------- cmd/theme.go | 6 ------ 3 files changed, 21 deletions(-) diff --git a/cmd/changes_submit_plan.go b/cmd/changes_submit_plan.go index 48d46fc1..cb43ec91 100644 --- a/cmd/changes_submit_plan.go +++ b/cmd/changes_submit_plan.go @@ -44,11 +44,6 @@ type TfData struct { Values map[string]any } -type plannedChangeGroups struct { - supported map[string][]*sdp.MappedItemDiff - unsupported map[string][]*sdp.MappedItemDiff -} - func changeTitle(arg string) string { if arg != "" { // easy, return the user's choice diff --git a/cmd/logging.go b/cmd/logging.go index df40d96b..6551ba32 100644 --- a/cmd/logging.go +++ b/cmd/logging.go @@ -1,19 +1,9 @@ package cmd import ( - "os" - - "github.com/mattn/go-isatty" "github.com/ttacon/chalk" ) -var tty bool - -func init() { - // Detect if we're in a TTY or not - tty = isatty.IsTerminal(os.Stdout.Fd()) -} - var ( // Styles Underline = TextStyle{chalk.Underline} diff --git a/cmd/theme.go b/cmd/theme.go index dec84b4a..5ac3a7aa 100644 --- a/cmd/theme.go +++ b/cmd/theme.go @@ -303,12 +303,6 @@ func MarkdownStyle() ansi.StyleConfig { } } -var titleStyle = lipgloss.NewStyle().Foreground(ColorPalette.BgMain).Bold(true) -var textStyle = lipgloss.NewStyle().Foreground(ColorPalette.LabelBase) -var addedLineStyle = lipgloss.NewStyle().Foreground(ColorPalette.LabelControl).Background(ColorPalette.BgSuccess) -var deletedLineStyle = lipgloss.NewStyle().Background(ColorPalette.BgDanger).Foreground(ColorPalette.LabelControl) -var containerStyle = lipgloss.NewStyle().PaddingLeft(2).PaddingTop(2) - func styleH1() lipgloss.Style { return lipgloss.NewStyle(). Foreground(lipgloss.Color("#ffffff")).