Skip to content

Commit

Permalink
deleted unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
maurosoria committed Mar 11, 2016
1 parent e43bd0d commit 9764c6e
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions lib/core/Fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -173,4 +156,4 @@ def thread_proc(self):
except StopIteration:
return
finally:
self.stopThread()
self.stopThread()

0 comments on commit 9764c6e

Please sign in to comment.