diff options
author | Jürg Billeter <j@bitron.ch> | 2018-09-26 10:09:07 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-09-27 10:19:12 +0100 |
commit | 0d0f700db3113026e7f0ef2c233f6935a22b5f09 (patch) | |
tree | 7598ca8036d3ad0bb688a6af5d4b0aa920cabaac /buildstream/_platform | |
parent | fe82c9c2c539a2e072c94bbbebf7091dad518ae9 (diff) | |
download | buildstream-0d0f700db3113026e7f0ef2c233f6935a22b5f09.tar.gz |
_platform: Remove unused context
Diffstat (limited to 'buildstream/_platform')
-rw-r--r-- | buildstream/_platform/linux.py | 4 | ||||
-rw-r--r-- | buildstream/_platform/platform.py | 7 | ||||
-rw-r--r-- | buildstream/_platform/unix.py | 4 |
3 files changed, 6 insertions, 9 deletions
diff --git a/buildstream/_platform/linux.py b/buildstream/_platform/linux.py index 2dfe72ac7..7af1a2283 100644 --- a/buildstream/_platform/linux.py +++ b/buildstream/_platform/linux.py @@ -30,9 +30,9 @@ from . import Platform class Linux(Platform): - def __init__(self, context): + def __init__(self): - super().__init__(context) + super().__init__() self._uid = os.geteuid() self._gid = os.getegid() diff --git a/buildstream/_platform/platform.py b/buildstream/_platform/platform.py index a6051aabb..bbd2e65ab 100644 --- a/buildstream/_platform/platform.py +++ b/buildstream/_platform/platform.py @@ -31,11 +31,8 @@ class Platform(): # A class to manage platform-specific details. Currently holds the # sandbox factory as well as platform helpers. # - # Args: - # context (context): The project context - # - def __init__(self, context): - self.context = context + def __init__(self): + pass @classmethod def create_instance(cls, *args, **kwargs): diff --git a/buildstream/_platform/unix.py b/buildstream/_platform/unix.py index 3bd86e0ac..7aa8cbc0d 100644 --- a/buildstream/_platform/unix.py +++ b/buildstream/_platform/unix.py @@ -27,9 +27,9 @@ from . import Platform class Unix(Platform): - def __init__(self, context): + def __init__(self): - super().__init__(context) + super().__init__() self._uid = os.geteuid() self._gid = os.getegid() |