瀏覽代碼

Remove function that was made redundant

Steven Myint 12 年之前
父節點
當前提交
0119015a70
共有 1 個檔案被更改,包括 1 行新增6 行删除
  1. 1
    6
      src/cdiff.py

+ 1
- 6
src/cdiff.py 查看文件

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):