From ec9b0406ad28a8c38b3f8b9f5fe104108ab17000 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 18 Aug 2019 17:28:57 +0900 Subject: [PATCH] Remove unused function This patch drops _open_pipe function, which is not used in anywhere. TrivialFix Change-Id: I6c54e5783898ea997e53ba023df7a8d675920965 --- storlets/gateway/gateways/docker/runtime.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/storlets/gateway/gateways/docker/runtime.py b/storlets/gateway/gateways/docker/runtime.py index a3c56ba9..dd451f22 100644 --- a/storlets/gateway/gateways/docker/runtime.py +++ b/storlets/gateway/gateways/docker/runtime.py @@ -43,19 +43,6 @@ MAX_METADATA_SIZE = 4096 eventlet.monkey_patch() -@contextmanager -def _open_pipe(): - """ - Context manager for os.pipe - """ - read_fd, write_fd = os.pipe() - try: - yield (read_fd, write_fd) - finally: - os.close(read_fd) - os.close(write_fd) - - """--------------------------------------------------------------------------- Sandbox API """