change: remove unused code

This commit is contained in:
lilong.129
2025-03-19 22:47:10 +08:00
parent a4d3c08a6a
commit b5f3e7ff96
5 changed files with 8 additions and 57 deletions

View File

@@ -110,7 +110,6 @@ func (p *ActionParser) parseActionText(actionText, thought string) ([]ParsedActi
"left_double": regexp.MustCompile(`left_double\(start_box='([^']+)'\)`),
"right_single": regexp.MustCompile(`right_single\(start_box='([^']+)'\)`),
"drag": regexp.MustCompile(`drag\(start_box='([^']+)', end_box='([^']+)'\)`),
"hotkey": regexp.MustCompile(`hotkey\(key='([^']+)'\)`),
"type": regexp.MustCompile(`type\(content='([^']+)'\)`),
"scroll": regexp.MustCompile(`scroll\(start_box='([^']+)', direction='([^']+)'\)`),
"wait": regexp.MustCompile(`wait\(\)`),
@@ -156,10 +155,6 @@ func (p *ActionParser) parseActionText(actionText, thought string) ([]ParsedActi
}
action.ActionInputs["endBox"] = endBox
}
case ActionTypeHotkey:
if len(matches) > 1 {
action.ActionInputs["key"] = matches[1]
}
case ActionTypeType:
if len(matches) > 1 {
action.ActionInputs["content"] = matches[1]