diff options
author | Tristan van Berkom <tristan.vanberkom@codethink.co.uk> | 2020-06-15 17:15:02 +0900 |
---|---|---|
committer | Tristan van Berkom <tristan.vanberkom@codethink.co.uk> | 2020-06-15 19:11:12 +0900 |
commit | 5daa22ae6f60568849254274fdbf57bde5b919d8 (patch) | |
tree | 5e689c7d7bad75dfa7b3b15a2f726131830573a1 /src/buildstream/source.py | |
parent | 0c14551de6ff5c84e1689d544f2d3ee073ac0a07 (diff) | |
download | buildstream-5daa22ae6f60568849254274fdbf57bde5b919d8.tar.gz |
Completely abolish job pickling.tristan/nuke-pickle-jobber
Diffstat (limited to 'src/buildstream/source.py')
-rw-r--r-- | src/buildstream/source.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/buildstream/source.py b/src/buildstream/source.py index 049db7062..f15d5a628 100644 --- a/src/buildstream/source.py +++ b/src/buildstream/source.py @@ -1183,28 +1183,6 @@ class Source(Plugin): def _element_name(self): return self.__element_name - # _get_args_for_child_job_pickling(self) - # - # Return data necessary to reconstruct this object in a child job process. - # - # Returns: - # (str, dict): A tuple of (meta_kind, state), where a factory can use - # `meta_kind` to create an instance of the same type as `self`. `state` - # is what we want `self.__dict__` to be restored to after instantiation - # in the child process. - # - def _get_args_for_child_job_pickling(self): - # In case you're wondering, note that it doesn't seem to be necessary - # to make a copy of `self.__dict__` here, because: - # - # o It seems that the default implementation of `_PyObject_GetState` - # in `typeobject.c` currently works this way, in CPython. - # - # o The code sketch of how pickling works also returns `self.__dict__`: - # https://docs.python.org/3/library/pickle.html#pickling-class-instances - # - return self.__meta_kind, self.__dict__ - ############################################################# # Local Private Methods # ############################################################# |