浏览代码

core/asm: remove unused condition (#16487)

dm4 7 年之前
父节点
当前提交
49e38c970e
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      core/asm/compiler.go

+ 0 - 3
core/asm/compiler.go

@@ -246,9 +246,6 @@ func isJump(op string) bool {
 
 
 // toBinary converts text to a vm.OpCode
 // toBinary converts text to a vm.OpCode
 func toBinary(text string) vm.OpCode {
 func toBinary(text string) vm.OpCode {
-	if isPush(text) {
-		text = "push1"
-	}
 	return vm.StringToOp(strings.ToUpper(text))
 	return vm.StringToOp(strings.ToUpper(text))
 }
 }