From 673d3ff14b9f35d757689fa94ddcfc5a88289a73 Mon Sep 17 00:00:00 2001 From: Lars Karlitski Date: Thu, 28 Nov 2019 16:05:52 +0100 Subject: [PATCH] blueprint: remove unused error It was moved to the distro package a while ago. --- internal/blueprint/blueprint.go | 10 ---------- internal/blueprint/blueprint_test.go | 27 --------------------------- 2 files changed, 37 deletions(-) delete mode 100644 internal/blueprint/blueprint_test.go diff --git a/internal/blueprint/blueprint.go b/internal/blueprint/blueprint.go index 30b818687..1aecccbdd 100644 --- a/internal/blueprint/blueprint.go +++ b/internal/blueprint/blueprint.go @@ -1,16 +1,6 @@ // Package blueprint contains primitives for representing weldr blueprints package blueprint -// An InvalidOutputFormatError is returned when a requested output format is -// not supported. The requested format is included as the error message. -type InvalidOutputFormatError struct { - message string -} - -func (e *InvalidOutputFormatError) Error() string { - return e.message -} - // A Blueprint is a high-level description of an image. type Blueprint struct { Name string `json:"name"` diff --git a/internal/blueprint/blueprint_test.go b/internal/blueprint/blueprint_test.go deleted file mode 100644 index 2d81790f0..000000000 --- a/internal/blueprint/blueprint_test.go +++ /dev/null @@ -1,27 +0,0 @@ -package blueprint_test - -import ( - "testing" - - "github.com/osbuild/osbuild-composer/internal/blueprint" -) - -func TestInvalidOutputFormatError_Error(t *testing.T) { - tests := []struct { - name string - want string - }{ - { - name: "basic", - want: "", - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - e := &blueprint.InvalidOutputFormatError{} - if got := e.Error(); got != tt.want { - t.Errorf("InvalidOutputFormatError.Error() = %v, want %v", got, tt.want) - } - }) - } -}