Skip to content

Commit 5f0b304

Browse files
committed
remove now dead code
1 parent 9366897 commit 5f0b304

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

services/actions/workflow.go

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"fmt"
88
"net/http"
99
"os"
10-
"strconv"
1110
"strings"
1211

1312
actions_model "code.gitea.io/gitea/models/actions"
@@ -296,28 +295,6 @@ func DispatchActionWorkflow(ctx *context.Context, workflowID, ref string, proces
296295
return nil
297296
}
298297

299-
func processWorkflowInputs(opt *api.CreateActionWorkflowDispatch, workflow *model.Workflow) map[string]any {
300-
inputs := make(map[string]any)
301-
if workflowDispatch := workflow.WorkflowDispatchConfig(); workflowDispatch != nil {
302-
for name, config := range workflowDispatch.Inputs {
303-
value, exists := opt.Inputs[name]
304-
if !exists {
305-
continue
306-
}
307-
if value == "" {
308-
value = config.Default
309-
}
310-
switch config.Type {
311-
case "boolean":
312-
inputs[name] = strconv.FormatBool(value == "on")
313-
default:
314-
inputs[name] = value
315-
}
316-
}
317-
}
318-
return inputs
319-
}
320-
321298
func EnableActionWorkflow(ctx *context.APIContext, workflowID string) error {
322299
return disableOrEnableWorkflow(ctx, workflowID, true)
323300
}

0 commit comments

Comments
 (0)