Skip to content

Commit 369c8fd

Browse files
committed
Remove useless function
1 parent c873275 commit 369c8fd

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

quark/script/__init__.py

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,12 @@ def findMethodInCaller(
248248
targetMethod: List[str]
249249
) -> bool:
250250
"""
251-
Check if target method in caller method.
251+
Check if target method is in caller method.
252252
253-
:params callerMethod: python list contains class name, method name and
253+
:params callerMethod: python list contains class name, method name and
254254
descriptor of caller method.
255-
256-
:params targetMethod: python list contains class name, method name and
255+
:params targetMethod: python list contains class name, method name and
257256
descriptor of target method.
258-
259257
:return: True/False
260258
"""
261259

@@ -292,17 +290,3 @@ def runQuarkAnalysis(samplePath: PathLike, ruleInstance: Rule) -> QuarkResult:
292290
analysis = QuarkResult(quark, ruleInstance)
293291

294292
return analysis
295-
296-
297-
def strToMethodObj(method: str) -> MethodObject:
298-
result = method.replace(" ", "").split("->")
299-
className = result[0]
300-
methodName = result[1].split("(")[0]
301-
descriptor = f"({result[1].split('(')[1]}"
302-
303-
methodObj = MethodObject(class_name=className,
304-
name=methodName, descriptor=descriptor)
305-
print(methodObj)
306-
# methodInstance = Method(methodObj=methodObj)
307-
308-
return methodObj

0 commit comments

Comments
 (0)