From c36a215f1985dea6d31838d06be85bdb7b47f153 Mon Sep 17 00:00:00 2001 From: Suraj Narwade Date: Tue, 20 Jun 2017 18:35:27 +0530 Subject: [PATCH] Removing unused function taggedimage --- pkg/transformer/openshift/openshift.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/pkg/transformer/openshift/openshift.go b/pkg/transformer/openshift/openshift.go index 9b394cba..624fcead 100644 --- a/pkg/transformer/openshift/openshift.go +++ b/pkg/transformer/openshift/openshift.go @@ -99,27 +99,6 @@ func getImageTag(image string) string { } -// Inputs name of the service + provided image -// Outputs name is image is blank, but still provide a tag. -func taggedImage(name string, serviceImage string) string { - var image string - tag := getImageTag(serviceImage) - - // Use the image name if not blank - if serviceImage != "" { - image = serviceImage - } else { - image = name - } - - // Add a tag if not present - if !strings.Contains(image, ":") { - image = image + ":" + tag - } - - return image -} - // hasGitBinary checks if the 'git' binary is available on the system func hasGitBinary() bool { _, err := exec.LookPath("git")