Browse Source

Remove function that was made redundant

Steven Myint 12 years ago
parent
commit
0119015a70
1 changed files with 1 additions and 6 deletions
  1. 1
    6
      src/cdiff.py

+ 1
- 6
src/cdiff.py View File

@@ -490,16 +490,11 @@ def check_command_status(arguments):
490 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 493
 def revision_control_diff(path):
499 494
     """Return diff from revision control system."""
500 495
     for check, diff in REVISION_CONTROL:
501 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 500
 def decode(line):