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:
Tom Gundersen 2020-03-25 23:45:53 +01:00
parent 7967ecbbf8
commit 895a4769e3
3 changed files with 2 additions and 24 deletions

View file

@ -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
}