From 4ee0df8c466861bcd258ec55b58283f276d3b3d5 Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Sat, 26 Jul 2025 16:46:22 +0800 Subject: cmd: remove dead code Fixes #74076 Change-Id: Icc67b3d4e342f329584433bd1250c56ae8f5a73d Reviewed-on: https://go-review.googlesource.com/c/go/+/690635 Reviewed-by: Alan Donovan LUCI-TryBot-Result: Go LUCI Commit-Queue: Alan Donovan Reviewed-by: Keith Randall Reviewed-by: Keith Randall Auto-Submit: Alan Donovan Reviewed-by: Dmitri Shuralyov --- src/cmd/internal/script/engine.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/cmd/internal/script/engine.go') diff --git a/src/cmd/internal/script/engine.go b/src/cmd/internal/script/engine.go index ba821712e5..eb9344f6e2 100644 --- a/src/cmd/internal/script/engine.go +++ b/src/cmd/internal/script/engine.go @@ -72,14 +72,6 @@ type Engine struct { Quiet bool } -// NewEngine returns an Engine configured with a basic set of commands and conditions. -func NewEngine() *Engine { - return &Engine{ - Cmds: DefaultCmds(), - Conds: DefaultConds(), - } -} - // A Cmd is a command that is available to a script. type Cmd interface { // Run begins running the command. -- cgit v1.3