From 055542694f9e823bb72b6c67f9e4676a538542c2 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Sun, 10 Oct 2021 19:02:00 -0700 Subject: [PATCH] remove encoder notes (have already been incorporated into lib interface) Signed-off-by: Alex Goodman --- syft/format/encoder.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/syft/format/encoder.go b/syft/format/encoder.go index 46e1d3b75..ab712c654 100644 --- a/syft/format/encoder.go +++ b/syft/format/encoder.go @@ -8,15 +8,4 @@ import ( "github.com/anchore/syft/syft/source" ) -// TODO: this should probably be a helper function to return the bytes -//func using() { -// var buff bytes.Buffer -// var encoder Encoder // = ... -// -// _:=encoder(&buff, nil, nil, nil) -// -// bytes.NewReader(buff.Bytes()) -// -//} - type Encoder func(io.Writer, *pkg.Catalog, *source.Metadata, *distro.Distro) error