summaryrefslogtreecommitdiff
path: root/src/buildstream/_yaml.pyx
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-28 17:06:43 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commit06faf60f47d270bc9ce3c6945c31861302882ae9 (patch)
tree562e44a3168f8593dafe890c653f410b302de56f /src/buildstream/_yaml.pyx
parentf7b461220ec2f1af3966ace12c21334f1f3b6457 (diff)
downloadbuildstream-06faf60f47d270bc9ce3c6945c31861302882ae9.tar.gz
_yaml: Decomission 'dump()'. 'roundtrip_dump' is an equivalent function now
Remove completely '_yaml.dump()' and replace all notions and call by 'roundtrip_dump'
Diffstat (limited to 'src/buildstream/_yaml.pyx')
-rw-r--r--src/buildstream/_yaml.pyx15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/buildstream/_yaml.pyx b/src/buildstream/_yaml.pyx
index 365615b73..81c456932 100644
--- a/src/buildstream/_yaml.pyx
+++ b/src/buildstream/_yaml.pyx
@@ -833,21 +833,6 @@ cpdef Node load_data(str data, int file_index=_SYNTHETIC_FILE_INDEX, str file_na
return contents
-# dump()
-#
-# Write a YAML node structure out to disk.
-#
-# This will always call `node_sanitize` on its input, so if you wanted
-# to output something close to what you read in, consider using the
-# `roundtrip_load` and `roundtrip_dump` function pair instead.
-#
-# Args:
-# contents (any): Content to write out
-# filename (str): The (optional) file name to write out to
-def dump(object contents, str filename=None):
- roundtrip_dump(node_sanitize(contents), file=filename)
-
-
# node_get_provenance()
#
# Gets the provenance for a node