diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-13 01:49:26 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-13 01:51:26 +0700 |
| commit | e1a3b3b44a9daeee1aeac6fdea869a4e8458ec4a (patch) | |
| tree | 638339eef623858334c54490a92e01b58d263121 | |
| parent | 434139fe3918fdb56704558301ad9275f1da06ad (diff) | |
| download | spdxconv-e1a3b3b44a9daeee1aeac6fdea869a4e8458ec4a.tar.xz | |
spdxconv: remove unused apply method
This method has been replaced when we implement the new Apply function.
| -rw-r--r-- | spdxconv.go | 20 |
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 -} |
