Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
e-sumin committed Feb 13, 2024
1 parent 961bc55 commit 33cb342
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 deletions pkg/function/kube_exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ func parseLogAndCreateOutput(out string) (map[string]interface{}, error) {
return nil, nil
}

// var op map[string]interface{}
reader := io.NopCloser(strings.NewReader(out))
output, err := output.LogAndParse(context.Background(), reader)

Expand All @@ -70,21 +69,6 @@ func parseLogAndCreateOutput(out string) (map[string]interface{}, error) {
return nil, err
}
return output, err
// logs := regexp.MustCompile("[\n]").Split(out, -1)
// for _, l := range logs {
// opObj, err := output.Parse(l)
// if err != nil {
// return nil, err
// }
// if opObj == nil {
// continue
// }
// if op == nil {
// op = make(map[string]interface{})
// }
// op[opObj.Key] = opObj.Value
// }
// return op, nil
}

func (kef *kubeExecFunc) Exec(ctx context.Context, tp param.TemplateParams, args map[string]interface{}) (map[string]interface{}, error) {
Expand Down
1 change: 0 additions & 1 deletion pkg/output/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func splitLines(ctx context.Context, r io.ReadCloser, f func(context.Context, []
state := InitState()

reader := bufio.NewReaderSize(r, bufferSize64k)
// reader := bufio.NewReader(r)

// Run a simple state machine loop
for {
Expand Down

0 comments on commit 33cb342

Please sign in to comment.