From 9764c6e27d043de2d0b2d399557604c2e2991c86 Mon Sep 17 00:00:00 2001 From: mauro Date: Fri, 11 Mar 2016 00:30:02 -0300 Subject: [PATCH] deleted unused functions --- lib/core/Fuzzer.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/lib/core/Fuzzer.py b/lib/core/Fuzzer.py index 753fc0655..54db61b7e 100755 --- a/lib/core/Fuzzer.py +++ b/lib/core/Fuzzer.py @@ -31,7 +31,6 @@ def __init__(self, requester, dictionary, testFailPath=None, threads=1, matchCal self.requester = requester self.dictionary = dictionary self.testFailPath = testFailPath - self.testedPaths = Queue() self.basePath = self.requester.basePath self.threads = [] self.threadsCount = threads if len(self.dictionary) >= threads else len(self.dictionary) @@ -120,27 +119,11 @@ def finishThreads(self): self.running = False self.finishedEvent.set() - def getPath(self): - path = None - if not self.empty(): - path = self.testedPaths.get() - if not self.isFinished(): - path = self.testedPaths.get() - return path - - def qsize(self): - return self.testedPaths.qsize() - - def empty(self): - return self.testedPaths.empty() - def isFinished(self): return self.runningThreadsCount == 0 def stopThread(self): self.runningThreadsCount -= 1 - if self.runningThreadsCount is 0: - self.testedPaths.put(None) def thread_proc(self): self.playEvent.wait() @@ -173,4 +156,4 @@ def thread_proc(self): except StopIteration: return finally: - self.stopThread() + self.stopThread() \ No newline at end of file