summaryrefslogtreecommitdiff
path: root/gsk/gskrendernode.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-05-14 02:49:19 +0200
committerBenjamin Otte <otte@redhat.com>2019-05-21 06:43:59 +0200
commit20d1bc2cccabe2225ae3eaf2248a9a1464ac513a (patch)
treeebc95c02f85135141786db0085a58a65844552ca /gsk/gskrendernode.c
parented0ecf0ff0968a1b09448929656c086e5837a28c (diff)
downloadgtk+-20d1bc2cccabe2225ae3eaf2248a9a1464ac513a.tar.gz
rendernodeparser: Skip root node when it's a container
When printing, behave the same way as when parsing: Magically skip a container node if there is one - just like the parser magically creates a container node to hold all the nodes it parses.
Diffstat (limited to 'gsk/gskrendernode.c')
-rw-r--r--gsk/gskrendernode.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/gsk/gskrendernode.c b/gsk/gskrendernode.c
index 1b1dd2d78f..2e4753a2e0 100644
--- a/gsk/gskrendernode.c
+++ b/gsk/gskrendernode.c
@@ -311,34 +311,6 @@ gsk_render_node_diff (GskRenderNode *node1,
#define GSK_RENDER_NODE_SERIALIZATION_ID "GskRenderNode"
/**
- * gsk_render_node_serialize:
- * @node: a #GskRenderNode
- *
- * Serializes the @node for later deserialization via
- * gsk_render_node_deserialize(). No guarantees are made about the format
- * used other than that the same version of GTK+ will be able to deserialize
- * the result of a call to gsk_render_node_serialize() and
- * gsk_render_node_deserialize() will correctly reject files it cannot open
- * that were created with previous versions of GTK+.
- *
- * The intended use of this functions is testing, benchmarking and debugging.
- * The format is not meant as a permanent storage format.
- *
- * Returns: a #GBytes representing the node.
- **/
-GBytes *
-gsk_render_node_serialize (GskRenderNode *node)
-{
- GBytes *result;
- char *str;
-
- str = gsk_render_node_serialize_to_string (node);
- result = g_bytes_new_take (str, strlen (str));
-
- return result;
-}
-
-/**
* gsk_render_node_write_to_file:
* @node: a #GskRenderNode
* @filename: the file to save it to.