diff --git a/internal/blueprint/blueprint_test.go b/internal/blueprint/blueprint_test.go index a3e8a6a6b..30b3cd19d 100644 --- a/internal/blueprint/blueprint_test.go +++ b/internal/blueprint/blueprint_test.go @@ -1,9 +1,10 @@ package blueprint import ( + "testing" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func TestDeepCopy(t *testing.T) { diff --git a/internal/osbuild/locale_stage.go b/internal/osbuild/locale_stage.go index 0454ef8a9..8e6d3f488 100644 --- a/internal/osbuild/locale_stage.go +++ b/internal/osbuild/locale_stage.go @@ -10,14 +10,6 @@ type LocaleStageOptions struct { func (LocaleStageOptions) isStageOptions() {} -// NewLocaleStageOptions creates a new locale stage options object, with -// the mandatory fields set. -func NewLocaleStageOptions(language string) *LocaleStageOptions { - return &LocaleStageOptions{ - Language: language, - } -} - // NewLocaleStage creates a new Locale Stage object. func NewLocaleStage(options *LocaleStageOptions) *Stage { return &Stage{ diff --git a/internal/osbuild/tar_assembler.go b/internal/osbuild/tar_assembler.go index 01f735af9..b2a16889a 100644 --- a/internal/osbuild/tar_assembler.go +++ b/internal/osbuild/tar_assembler.go @@ -12,15 +12,6 @@ type TarAssemblerOptions struct { func (TarAssemblerOptions) isAssemblerOptions() {} -// NewTarAssemblerOptions creates a new TarAssemblerOptions object, with the -// mandatory options set. -func NewTarAssemblerOptions(filename string, size uint64) *TarAssemblerOptions { - return &TarAssemblerOptions{ - Filename: filename, - Size: size, - } -} - // NewTarAssembler creates a new Tar Assembler object. func NewTarAssembler(options *TarAssemblerOptions) *Assembler { return &Assembler{ @@ -28,9 +19,3 @@ func NewTarAssembler(options *TarAssemblerOptions) *Assembler { Options: options, } } - -// SetCompression sets the compression type for a given TarAssemblerOptions -// object. -func (options *TarAssemblerOptions) SetCompression(compression string) { - options.Compression = compression -}