Przeglądaj źródła

Remove function that was made redundant

Steven Myint 12 lat temu
rodzic
commit
0119015a70
1 zmienionych plików z 1 dodań i 6 usunięć
  1. 1
    6
      src/cdiff.py

+ 1
- 6
src/cdiff.py Wyświetl plik

490
         return False
490
         return False
491
 
491
 
492
 
492
 
493
-def command_pipe(arguments):
494
-    """Return stdout pipe after starting subprocess."""
495
-    return subprocess.Popen(arguments, stdout=subprocess.PIPE).stdout
496
-
497
-
498
 def revision_control_diff(path):
493
 def revision_control_diff(path):
499
     """Return diff from revision control system."""
494
     """Return diff from revision control system."""
500
     for check, diff in REVISION_CONTROL:
495
     for check, diff in REVISION_CONTROL:
501
         if check_command_status(check):
496
         if check_command_status(check):
502
-            return command_pipe(diff)
497
+            return subprocess.Popen(diff, stdout=subprocess.PIPE).stdout
503
 
498
 
504
 
499
 
505
 def decode(line):
500
 def decode(line):