From: Michael Tremer Date: Wed, 29 Jan 2025 18:17:48 +0000 (+0000) Subject: backend: Drop an unused function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6ffc8144084f55b505ed8e565a2cb3a843dc370;p=pbs.git backend: Drop an unused function Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/__init__.py b/src/buildservice/__init__.py index 6d29d838..894dbba5 100644 --- a/src/buildservice/__init__.py +++ b/src/buildservice/__init__.py @@ -465,21 +465,6 @@ class Backend(object): return aiofiles.tempfile.TemporaryDirectory(dir=path, **kwargs) - def _write_tempfile(self, content): - """ - Writes the content to a temporary file and returns its path - """ - t = self.tempfile(delete=False) - - # Write the content - if content: - t.write(content.encode()) - - # Close the file - t.close() - - return t.name - async def open(self, path): """ Opens a package and returns the archive