Skip to content

Commit ead7af6

Browse files
committed
代码整理
1 parent 0a237c1 commit ead7af6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tracemanplugin/src/main/java/cn/cxzheng/tracemanplugin/TraceMethod.kt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package cn.cxzheng.tracemanplugin
22

33
import org.objectweb.asm.Opcodes
4-
import org.objectweb.asm.Type
54

65
/**
76
* Create by cxzheng on 2019/6/4
@@ -36,12 +35,6 @@ class TraceMethod {
3635
}
3736

3837

39-
fun getReturn(): String? {
40-
return if (desc.isNullOrEmpty()) {
41-
null
42-
} else Type.getReturnType(desc!!).toString()
43-
}
44-
4538

4639
override fun toString(): String {
4740
return if (desc == null || isNativeMethod()) {
@@ -51,13 +44,6 @@ class TraceMethod {
5144
}
5245
}
5346

54-
fun toIgnoreString(): String {
55-
return if (desc == null || isNativeMethod()) {
56-
"$className $methodName"
57-
} else {
58-
"$className $methodName $desc"
59-
}
60-
}
6147

6248
fun isNativeMethod(): Boolean {
6349
return accessFlag and Opcodes.ACC_NATIVE != 0

0 commit comments

Comments
 (0)