aboutsummaryrefslogtreecommitdiff
path: root/jsonloader/jsonloader.go
diff options
context:
space:
mode:
Diffstat (limited to 'jsonloader/jsonloader.go')
-rw-r--r--jsonloader/jsonloader.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/jsonloader/jsonloader.go b/jsonloader/jsonloader.go
deleted file mode 100644
index 8e2646c..0000000
--- a/jsonloader/jsonloader.go
+++ /dev/null
@@ -1,24 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
-
-package jsonloader
-
-import (
- "bytes"
- "io"
-
- parser2v2 "github.com/spdx/tools-golang/jsonloader/parser2v2"
- "github.com/spdx/tools-golang/spdx"
-)
-
-// Takes in a file Reader and returns the pertaining spdx document
-// or the error if any is encountered while setting the doc.
-func Load2_2(content io.Reader) (*spdx.Document2_2, error) {
- //convert io.Reader to a slice of bytes and call the parser
- buf := new(bytes.Buffer)
- buf.ReadFrom(content)
- var doc, err = parser2v2.Load2_2(buf.Bytes())
- if err != nil {
- return nil, err
- }
- return doc, nil
-}