From e2a3245ea687f06c96e16dcec05ed6b76c72c2b9 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 10 Jun 2025 13:31:39 +0200 Subject: [PATCH] core/vm: remove unused functions --- core/vm/gas_table.go | 17 ----------------- core/vm/memory_table.go | 16 ---------------- 2 files changed, 33 deletions(-) diff --git a/core/vm/gas_table.go b/core/vm/gas_table.go index f711aa4a18..58f039df9f 100644 --- a/core/vm/gas_table.go +++ b/core/vm/gas_table.go @@ -485,20 +485,3 @@ func gasSelfdestruct(evm *EVM, contract *Contract, stack *Stack, mem *Memory, me } return gas, nil } - -func gasExtCall(evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySize uint64) (uint64, error) { - panic("not implemented") -} - -func gasExtDelegateCall(evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySize uint64) (uint64, error) { - panic("not implemented") -} -func gasExtStaticCall(evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySize uint64) (uint64, error) { - panic("not implemented") -} - -// gasEOFCreate returns the gas-cost for EOF-Create. Hashing charge needs to be -// deducted in the opcode itself, since it depends on the immediate -func gasEOFCreate(evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySize uint64) (uint64, error) { - panic("not implemented") -} diff --git a/core/vm/memory_table.go b/core/vm/memory_table.go index 28746042cf..63ad967850 100644 --- a/core/vm/memory_table.go +++ b/core/vm/memory_table.go @@ -120,19 +120,3 @@ func memoryRevert(stack *Stack) (uint64, bool) { func memoryLog(stack *Stack) (uint64, bool) { return calcMemSize64(stack.Back(0), stack.Back(1)) } - -func memoryExtCall(stack *Stack) (uint64, bool) { - return calcMemSize64(stack.Back(1), stack.Back(2)) -} - -func memoryDataCopy(stack *Stack) (uint64, bool) { - return calcMemSize64(stack.Back(0), stack.Back(2)) -} - -func memoryEOFCreate(stack *Stack) (uint64, bool) { - return calcMemSize64(stack.Back(2), stack.Back(3)) -} - -func memoryReturnContract(stack *Stack) (uint64, bool) { - return calcMemSize64(stack.Back(0), stack.Back(1)) -}