Skip to content

Commit 765285c

Browse files
committed
delete unused func
1 parent d0ece5b commit 765285c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

vmhost/contexts/runtime.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -647,19 +647,6 @@ func (context *runtimeContext) FailExecution(err error) {
647647
logRuntime.Trace("execution failed", "message", traceMessage)
648648
}
649649

650-
// FailExecutionConditionally informs Wasmer to immediately stop the execution of the contract
651-
// with BreakpointExecutionFailed and sets the corresponding VMOutput fields accordingly, if the unsafe mode is not active.
652-
// If unsafe mode is active, it just logs the error.
653-
func (context *runtimeContext) FailExecutionConditionally(err error) {
654-
if context.IsUnsafeMode() {
655-
logRuntime.Trace("execution would have failed, but unsafe mode is active", "err", err)
656-
context.AddError(err)
657-
return
658-
}
659-
660-
context.FailExecution(err)
661-
}
662-
663650
// IsUnsafeMode returns true if mode is unsafe
664651
func (context *runtimeContext) IsUnsafeMode() bool {
665652
return context.unsafeMode

0 commit comments

Comments
 (0)