compiler: adjust test's checkInstrCount
Remove unnecessary code.
This commit is contained in:
parent
2b8271055f
commit
293dbf3d1b
1 changed files with 0 additions and 2 deletions
|
@ -3,7 +3,6 @@ package compiler_test
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"math/big"
|
||||||
"os"
|
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
@ -18,7 +17,6 @@ func checkCallCount(t *testing.T, src string, expectedCall, expectedInitSlot, ex
|
||||||
|
|
||||||
func checkInstrCount(t *testing.T, src string, expectedSSlotCount, expectedCall, expectedInitSlot, expectedLocalsMain int) {
|
func checkInstrCount(t *testing.T, src string, expectedSSlotCount, expectedCall, expectedInitSlot, expectedLocalsMain int) {
|
||||||
v, sp, _ := vmAndCompileInterop(t, src)
|
v, sp, _ := vmAndCompileInterop(t, src)
|
||||||
v.PrintOps(os.Stdout)
|
|
||||||
mainStart := -1
|
mainStart := -1
|
||||||
for _, m := range sp.info.Methods {
|
for _, m := range sp.info.Methods {
|
||||||
if m.Name.Name == "main" {
|
if m.Name.Name == "main" {
|
||||||
|
|
Loading…
Reference in a new issue