From e1a3b3b44a9daeee1aeac6fdea869a4e8458ec4a Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 13 Jan 2026 01:49:26 +0700 Subject: spdxconv: remove unused apply method This method has been replaced when we implement the new Apply function. --- spdxconv.go | 20 -------------------- 1 file changed, 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 -} -- cgit v1.3