From 953738c128c81fa9d43383fadd1d73914be98496 Mon Sep 17 00:00:00 2001 From: Alisdair McDiarmid Date: Tue, 25 May 2021 15:54:57 -0400 Subject: [PATCH] command/views: Remove unused drift summary message This was dead code, and there is no clear way to retrieve this information, as we currently only derive the drift information as part of the rendering process. --- internal/command/views/json/message_types.go | 1 - internal/command/views/json_view.go | 8 -------- 2 files changed, 9 deletions(-) diff --git a/internal/command/views/json/message_types.go b/internal/command/views/json/message_types.go index fd974d2cd..eb10c7b1e 100644 --- a/internal/command/views/json/message_types.go +++ b/internal/command/views/json/message_types.go @@ -11,7 +11,6 @@ const ( // Operation results MessagePlannedChange MessageType = "planned_change" MessageChangeSummary MessageType = "change_summary" - MessageDriftSummary MessageType = "drift_summary" MessageOutputs MessageType = "outputs" // Hook-driven messages diff --git a/internal/command/views/json_view.go b/internal/command/views/json_view.go index 06a2c797f..8f2b166f7 100644 --- a/internal/command/views/json_view.go +++ b/internal/command/views/json_view.go @@ -103,14 +103,6 @@ func (v *JSONView) ChangeSummary(cs *json.ChangeSummary) { ) } -func (v *JSONView) DriftSummary(cs *json.ChangeSummary) { - v.log.Info( - cs.String(), - "type", json.MessageDriftSummary, - "changes", cs, - ) -} - func (v *JSONView) Hook(h json.Hook) { v.log.Info( h.String(),