Skip to content

Commit a8adcff

Browse files
committed
Removed unused function FindAllSubdirectories
1 parent 54fa790 commit a8adcff

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

legacy/builder/utils/utils.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -226,30 +226,6 @@ func AbsolutizePaths(files []string) ([]string, error) {
226226

227227
type CheckExtensionFunc func(ext string) bool
228228

229-
func FindAllSubdirectories(folder string, output *[]string) error {
230-
walkFunc := func(path string, info os.FileInfo, err error) error {
231-
if err != nil {
232-
return err
233-
}
234-
235-
// Skip source control and hidden files and directories
236-
if IsSCCSOrHiddenFile(info) {
237-
if info.IsDir() {
238-
return filepath.SkipDir
239-
}
240-
return nil
241-
}
242-
243-
// Skip directories unless recurse is on, or this is the
244-
// root directory
245-
if info.IsDir() {
246-
*output = AppendIfNotPresent(*output, path)
247-
}
248-
return nil
249-
}
250-
return gohasissues.Walk(folder, walkFunc)
251-
}
252-
253229
func FindFilesInFolder(files *[]string, folder string, extensions CheckExtensionFunc, recurse bool) error {
254230
walkFunc := func(path string, info os.FileInfo, err error) error {
255231
if err != nil {

0 commit comments

Comments
 (0)