]> git.ipfire.org Git - pbs.git/commitdiff
backend: Drop an unused function
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Jan 2025 18:17:48 +0000 (18:17 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Jan 2025 18:17:48 +0000 (18:17 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/__init__.py

index 6d29d838059c89289ae2b25b2315cecfd57a7498..894dbba5df666cd3a396efa7abc23d85a0f2d15a 100644 (file)
@@ -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