Merge "Delete some dead code"

This commit is contained in:
Zuul 2018-02-11 08:00:09 +00:00 committed by Gerrit Code Review
commit 06a41984d0
1 changed files with 0 additions and 13 deletions

View File

@ -440,19 +440,6 @@ class LogFile(object):
raise StopIteration() raise StopIteration()
return self.entry 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 file formats with command line options
LOG_TYPES = { LOG_TYPES = {