Skip to content

Commit eb04ff5

Browse files
kola: remove unused TargetDistroFromName function
1 parent cb3ea70 commit eb04ff5

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

mantle/util/distros.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,10 @@ package util
1616

1717
import (
1818
"fmt"
19-
"path/filepath"
20-
"strings"
2119

2220
"github.com/coreos/coreos-assembler/pkg/builds"
2321
)
2422

25-
// TargetDistroFromName returns the distribution given
26-
// the path to an artifact (usually a disk image).
27-
func TargetDistroFromName(artifact string) string {
28-
basename := filepath.Base(artifact)
29-
if strings.HasPrefix(basename, "rhcos-") || strings.HasPrefix(basename, "scos-") {
30-
return "rhcos"
31-
}
32-
// For now, just assume fcos
33-
return "fcos"
34-
}
35-
3623
// TargetDistro returns the distribution of a cosa build
3724
func TargetDistro(build *builds.Build) (string, error) {
3825
switch build.Name {

0 commit comments

Comments
 (0)