From ceb7fee2a120a9cd153771d296dbfda369bc21af Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 31 Oct 2024 13:58:42 +0100 Subject: [PATCH] console: remove getJeth --- console/bridge.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/console/bridge.go b/console/bridge.go index 8d8a484171..c1d7746c02 100644 --- a/console/bridge.go +++ b/console/bridge.go @@ -48,14 +48,6 @@ func newBridge(client *rpc.Client, prompter prompt.UserPrompter, printer io.Writ } } -func getJeth(vm *goja.Runtime) *goja.Object { - jeth := vm.Get("jeth") - if jeth == nil { - panic(vm.ToValue("jeth object does not exist")) - } - return jeth.ToObject(vm) -} - // Sleep will block the console for the specified number of seconds. func (b *bridge) Sleep(call jsre.Call) (goja.Value, error) { if nArgs := len(call.Arguments); nArgs < 1 {