Skip to content

Commit efbbb16

Browse files
chore: drop dead code
1 parent 91ccf88 commit efbbb16

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pkg/loader/loader.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -384,21 +384,3 @@ func input(ctx context.Context, cache *cache.Client, base *source, name string)
384384

385385
return nil, fmt.Errorf("can not load tools path=%s name=%s", base.Path, name)
386386
}
387-
388-
func SplitToolRef(targetToolName string) (toolName, subTool string) {
389-
var (
390-
fields = strings.Fields(targetToolName)
391-
idx = slices.Index(fields, "from")
392-
)
393-
394-
defer func() {
395-
toolName, _ = types.SplitArg(toolName)
396-
}()
397-
398-
if idx == -1 {
399-
return strings.TrimSpace(targetToolName), ""
400-
}
401-
402-
return strings.Join(fields[idx+1:], " "),
403-
strings.Join(fields[:idx], " ")
404-
}

0 commit comments

Comments
 (0)