Skip to content

Commit 8ac3368

Browse files
committed
remove commented codes
Signed-off-by: Stephanie <yangcao@redhat.com>
1 parent da359af commit 8ac3368

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

pkg/devfile/parser/data/v2/common/command_helper.go

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func GetExecWorkingDir(dc v1.Command) string {
5050
return ""
5151
}
5252

53-
// GetApplyComponent returns the component of the exec command
53+
// GetApplyComponent returns the component of the apply command
5454
func GetApplyComponent(dc v1.Command) string {
5555
if dc.Apply != nil {
5656
return dc.Apply.Component
@@ -59,24 +59,6 @@ func GetApplyComponent(dc v1.Command) string {
5959
return ""
6060
}
6161

62-
//// GetApplyCommandLine returns the command line of the exec command
63-
//func GetApplyCommandLine(dc v1.Command) string {
64-
// if dc.Apply != nil {
65-
// return dc.Apply
66-
// }
67-
//
68-
// return ""
69-
//}
70-
//
71-
//// GetExecWorkingDir returns the working dir of the exec command
72-
//func GetExecWorkingDir(dc v1.Command) string {
73-
// if dc.Exec != nil {
74-
// return dc.Exec.WorkingDir
75-
// }
76-
//
77-
// return ""
78-
//}
79-
8062
// GetCommandType returns the command type of a given command
8163
func GetCommandType(command v1.Command) (v1.CommandType, error) {
8264
switch {

0 commit comments

Comments
 (0)