snapshot: Stop exporting _append_node_internal

Unused outside of gtksnapshot.c
This commit is contained in:
Timm Bäder 2019-08-16 07:17:41 +02:00
parent c53f58e839
commit ffab342fc4
2 changed files with 19 additions and 22 deletions

View File

@ -1044,6 +1044,25 @@ gtk_snapshot_pop_one (GtkSnapshot *snapshot)
return node;
}
static void
gtk_snapshot_append_node_internal (GtkSnapshot *snapshot,
GskRenderNode *node)
{
GtkSnapshotState *current_state;
current_state = gtk_snapshot_get_current_state (snapshot);
if (current_state)
{
g_ptr_array_add (snapshot->nodes, node);
current_state->n_nodes ++;
}
else
{
g_critical ("Tried appending a node to an already finished snapshot.");
}
}
static GskRenderNode *
gtk_snapshot_pop_internal (GtkSnapshot *snapshot)
{
@ -1419,25 +1438,6 @@ gtk_snapshot_perspective (GtkSnapshot *snapshot,
state->transform = gsk_transform_perspective (state->transform, depth);
}
void
gtk_snapshot_append_node_internal (GtkSnapshot *snapshot,
GskRenderNode *node)
{
GtkSnapshotState *current_state;
current_state = gtk_snapshot_get_current_state (snapshot);
if (current_state)
{
g_ptr_array_add (snapshot->nodes, node);
current_state->n_nodes ++;
}
else
{
g_critical ("Tried appending a node to an already finished snapshot.");
}
}
/**
* gtk_snapshot_append_node:
* @snapshot: a #GtkSnapshot

View File

@ -96,9 +96,6 @@ struct _GtkSnapshotClass {
GObjectClass parent_class; /* it's really GdkSnapshotClass, but don't tell anyone! */
};
void gtk_snapshot_append_node_internal (GtkSnapshot *snapshot,
GskRenderNode *node);
GtkSnapshot * gtk_snapshot_new_with_parent (GtkSnapshot *parent_snapshot);
void gtk_snapshot_append_text (GtkSnapshot *snapshot,