aboutsummaryrefslogtreecommitdiff
path: root/spdxconv.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-13 01:49:26 +0700
committerShulhan <ms@kilabit.info>2026-01-13 01:51:26 +0700
commite1a3b3b44a9daeee1aeac6fdea869a4e8458ec4a (patch)
tree638339eef623858334c54490a92e01b58d263121 /spdxconv.go
parent434139fe3918fdb56704558301ad9275f1da06ad (diff)
downloadspdxconv-e1a3b3b44a9daeee1aeac6fdea869a4e8458ec4a.tar.xz
spdxconv: remove unused apply method
This method has been replaced when we implement the new Apply function.
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
-}