Browse Source

Delete some dead code

Change-Id: I92c05a7520541b937badbbd87308daf12a76baf5
Matthew Booth 1 year ago
parent
commit
1c6d22503d
1 changed files with 0 additions and 13 deletions
  1. 0
    13
      oslogmerger/oslogmerger.py

+ 0
- 13
oslogmerger/oslogmerger.py View File

@@ -440,19 +440,6 @@ class LogFile(object):
440 440
             raise StopIteration()
441 441
         return self.entry
442 442
 
443
-    def peek(self):
444
-        return self.entry
445
-
446
-    def __cmp__(self, other):
447
-        if other.peek() is None or self.peek() is None:
448
-            if self.peek() is None:
449
-                return 0 if other.peek() is None else 1
450
-            return -1
451
-
452
-        if (other.peek() or self.peek()) is None:
453
-            return 0 if self.peek() is None else -1
454
-        return cmp(self.peek(), other.peek())
455
-
456 443
 
457 444
 # Log file formats with command line options
458 445
 LOG_TYPES = {

Loading…
Cancel
Save