summaryrefslogtreecommitdiff
path: root/src/buildstream
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-06-03 11:37:53 +0200
committerJürg Billeter <j@bitron.ch>2020-06-03 13:49:39 +0200
commit632938f9af2526ffe603116287ef64e21d64aceb (patch)
treeb9051bb065acb6a27a3cb6e1dde1a28455488a26 /src/buildstream
parent3a0db49717cc4a41f61e724af3e824a6da8e60f8 (diff)
downloadbuildstream-632938f9af2526ffe603116287ef64e21d64aceb.tar.gz
linux.py: Remove unused can_crossbuild() and _uid/_gid
Diffstat (limited to 'src/buildstream')
-rw-r--r--src/buildstream/_platform/linux.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/buildstream/_platform/linux.py b/src/buildstream/_platform/linux.py
index 1c9ba25b9..13fe0b64c 100644
--- a/src/buildstream/_platform/linux.py
+++ b/src/buildstream/_platform/linux.py
@@ -18,9 +18,6 @@
# Authors:
# Tristan Maat <tristan.maat@codethink.co.uk>
-import os
-
-from .. import utils
from ..sandbox import SandboxDummy
from .platform import Platform
@@ -39,29 +36,6 @@ class Linux(Platform):
self._try_sandboxes(force_sandbox, sandbox_setups, preferred_sandboxes)
- def __init__(self, force_sandbox=None):
- super().__init__(force_sandbox=force_sandbox)
-
- self._uid = os.geteuid()
- self._gid = os.getegid()
-
- # Set linux32 option
- self.linux32 = None
-
- def can_crossbuild(self, config):
- host_arch = self.get_host_arch()
- if (config.build_arch == "x86-32" and host_arch == "x86-64") or (
- config.build_arch == "aarch32" and host_arch == "aarch64"
- ):
- if self.linux32 is None:
- try:
- utils.get_host_tool("linux32")
- self.linux32 = True
- except utils.ProgramNotFoundError:
- self.linux32 = False
- return self.linux32
- return False
-
################################################
# Private Methods #
################################################