summaryrefslogtreecommitdiff
path: root/src/buildstream/source.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/source.py')
-rw-r--r--src/buildstream/source.py22
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 #
#############################################################