Skip to content

Commit

Permalink
Remove GetCmd()
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTei committed Feb 14, 2024
1 parent 1378bd2 commit e033333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions rvgo/cmd/process_preimage_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ func (p *ProcessPreimageOracle) GetPreimage(k [32]byte) []byte {
return p.pCl.Get(rawKey(k))
}

func (p *ProcessPreimageOracle) GetCmd() *exec.Cmd {
return p.cmd
}

func (p *ProcessPreimageOracle) Start() error {
if p.cmd == nil {
return nil
Expand Down
5 changes: 2 additions & 3 deletions rvgo/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,8 @@ func Run(ctx *cli.Context) error {
snapshotFmt := ctx.String(cannon.RunSnapshotFmtFlag.Name)

stepFn := us.Step
poCmd := po.GetCmd()
if poCmd != nil {
stepFn = Guard(poCmd.ProcessState, stepFn)
if po.cmd != nil {
stepFn = Guard(po.cmd.ProcessState, stepFn)
}

start := time.Now()
Expand Down

0 comments on commit e033333

Please sign in to comment.