Skip to content

Commit

Permalink
Revert "add passthrough api"
Browse files Browse the repository at this point in the history
This reverts commit 9a09dcf.
  • Loading branch information
hodefoting committed Nov 26, 2014
1 parent bbe87cc commit 6530b38
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 44 deletions.
2 changes: 0 additions & 2 deletions gegl/graph/gegl-node-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ struct _GeglNode

GMutex mutex;

gint passthrough;

/*< private >*/
GeglNodePrivate *priv;
};
Expand Down
37 changes: 1 addition & 36 deletions gegl/graph/gegl-node.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ enum
PROP_OPERATION,
PROP_NAME,
PROP_DONT_CACHE,
PROP_USE_OPENCL,
PROP_PASSTHROUGH
PROP_USE_OPENCL
};

enum
Expand Down Expand Up @@ -173,14 +172,6 @@ gegl_node_class_init (GeglNodeClass *klass)
G_PARAM_CONSTRUCT |
G_PARAM_READWRITE));

g_object_class_install_property (gobject_class, PROP_PASSTHROUGH,
g_param_spec_boolean ("passthrough",
"Passthrough",
"Act as a nop, passing input unmodifed through to ouput.",
FALSE,
G_PARAM_CONSTRUCT |
G_PARAM_READWRITE));

gegl_node_signals[INVALIDATED] =
g_signal_new ("invalidated",
G_TYPE_FROM_CLASS (klass),
Expand Down Expand Up @@ -314,10 +305,6 @@ gegl_node_local_set_property (GObject *gobject,
node->dont_cache = g_value_get_boolean (value);
break;

case PROP_PASSTHROUGH:
node->passthrough = g_value_get_boolean (value);
break;

case PROP_USE_OPENCL:
node->use_opencl = g_value_get_boolean (value);
break;
Expand Down Expand Up @@ -364,10 +351,6 @@ gegl_node_local_get_property (GObject *gobject,
g_value_set_boolean (value, node->dont_cache);
break;

case PROP_PASSTHROUGH:
g_value_set_boolean (value, node->passthrough);
break;

case PROP_USE_OPENCL:
g_value_set_boolean (value, node->use_opencl);
break;
Expand Down Expand Up @@ -2145,21 +2128,3 @@ gegl_node_new (void)
{
return g_object_new (GEGL_TYPE_NODE, NULL);
}

gboolean
gegl_node_get_passthrough (GeglNode *node)
{
g_return_val_if_fail (GEGL_IS_NODE (node), FALSE);

return node->passthrough;
}

void
gegl_node_set_passthrough (GeglNode *node,
gboolean passthrough)
{
g_return_if_fail (GEGL_IS_NODE (node));

gegl_node_invalidated (node, NULL, TRUE);
node->passthrough = passthrough;
}
6 changes: 0 additions & 6 deletions gegl/graph/gegl-node.h
Original file line number Diff line number Diff line change
Expand Up @@ -667,12 +667,6 @@ GeglNode * gegl_node_new_from_file (const gchar *path);
gchar * gegl_node_to_xml (GeglNode *node,
const gchar *path_root);

gboolean gegl_node_get_passthrough (GeglNode *node);

void gegl_node_set_passthrough (GeglNode *node,
gboolean passthrough);


G_END_DECLS

#endif /* __GEGL_NODE_H__ */

0 comments on commit 6530b38

Please sign in to comment.