[meld/windows-fixes] misc: Remove unused function



commit e1a85f835dfa6153f7f10a1966de24a9520925c6
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Wed Aug 10 13:47:22 2022 +1000

    misc: Remove unused function

 meld/misc.py | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/meld/misc.py b/meld/misc.py
index d7255f84..18920e0f 100644
--- a/meld/misc.py
+++ b/meld/misc.py
@@ -274,16 +274,6 @@ def read_pipe_iter(
     return Sentinel()()
 
 
-def write_pipe(
-        command: List[str], text: str, error: Optional[int] = None) -> int:
-    """Write 'text' into a shell command and discard its stdout output.
-    """
-    proc = subprocess.Popen(command, stdin=subprocess.PIPE,
-                            stdout=subprocess.PIPE, stderr=error)
-    proc.communicate(text)
-    return proc.wait()
-
-
 def copy2(src: str, dst: str) -> None:
     """Like shutil.copy2 but ignores chmod errors, and copies symlinks as links
     See [Bug 568000] Copying to NTFS fails


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]