osbuild: remove dead code
The helper functions were never used, we should aim to use the osbuild types just as regular structs for serialization purposes. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
7967ecbbf8
commit
895a4769e3
3 changed files with 2 additions and 24 deletions
|
|
@ -1,9 +1,10 @@
|
|||
package blueprint
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestDeepCopy(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue