Delete some dead code
Change-Id: I92c05a7520541b937badbbd87308daf12a76baf5
This commit is contained in:
parent
1a31f79327
commit
1c6d22503d
|
@ -440,19 +440,6 @@ class LogFile(object):
|
|||
raise StopIteration()
|
||||
return self.entry
|
||||
|
||||
def peek(self):
|
||||
return self.entry
|
||||
|
||||
def __cmp__(self, other):
|
||||
if other.peek() is None or self.peek() is None:
|
||||
if self.peek() is None:
|
||||
return 0 if other.peek() is None else 1
|
||||
return -1
|
||||
|
||||
if (other.peek() or self.peek()) is None:
|
||||
return 0 if self.peek() is None else -1
|
||||
return cmp(self.peek(), other.peek())
|
||||
|
||||
|
||||
# Log file formats with command line options
|
||||
LOG_TYPES = {
|
||||
|
|
Loading…
Reference in New Issue