aboutsummaryrefslogtreecommitdiff
path: root/spdxconv.go
diff options
context:
space:
mode:
Diffstat (limited to 'spdxconv.go')
-rw-r--r--spdxconv.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/spdxconv.go b/spdxconv.go
index 422f9fe..f3da9c1 100644
--- a/spdxconv.go
+++ b/spdxconv.go
@@ -327,23 +327,3 @@ func (conv *SPDXConv) scanDir(listDir []string) (listFile []string, err error) {
slices.Sort(listFile)
return listFile, nil
}
-
-// apply check and insert the SPDX identifier to file `pathFile`.
-func (conv *SPDXConv) apply(pathFile string) (err error) {
- var logp = `apply`
- var f *file
-
- f, err = newFile(pathFile, conv.cfg.MaxLineMatch)
- if err != nil {
- return fmt.Errorf(`%s: %w`, logp, err)
- }
-
- f.apply(conv)
-
- err = f.write()
- if err != nil {
- return fmt.Errorf(`%s: %w`, logp, err)
- }
-
- return nil
-}