[gegl] Removed some typechecks in performance critical internal API
- From: Øyvind Kolås <ok src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gegl] Removed some typechecks in performance critical internal API
- Date: Tue, 24 Nov 2009 22:09:23 +0000 (UTC)
commit 59a9dac19e5ae1ef58d0bbb9da8d73c5e9c15d34
Author: �yvind Kolås <pippin gimp org>
Date: Tue Nov 24 22:01:46 2009 +0000
Removed some typechecks in performance critical internal API
gegl/graph/gegl-visitable.c | 2 --
gegl/graph/gegl-visitor.c | 13 -------------
2 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/gegl/graph/gegl-visitable.c b/gegl/graph/gegl-visitable.c
index 472fcb5..e1dcfb7 100644
--- a/gegl/graph/gegl-visitable.c
+++ b/gegl/graph/gegl-visitable.c
@@ -76,8 +76,6 @@ gegl_visitable_depends_on (GeglVisitable *interface)
GeglVisitableClass *interface_class;
GSList *depends_on = NULL;
- g_return_val_if_fail (GEGL_IS_VISITABLE (interface), NULL);
-
interface_class = GEGL_VISITABLE_GET_CLASS (interface);
depends_on = interface_class->depends_on (interface);
diff --git a/gegl/graph/gegl-visitor.c b/gegl/graph/gegl-visitor.c
index 9dd6f2e..0af0500 100644
--- a/gegl/graph/gegl-visitor.c
+++ b/gegl/graph/gegl-visitor.c
@@ -313,9 +313,6 @@ void
gegl_visitor_dfs_traverse (GeglVisitor *self,
GeglVisitable *visitable)
{
- g_return_if_fail (GEGL_IS_VISITOR (self));
- g_return_if_fail (GEGL_IS_VISITABLE (visitable));
-
/* sets up the structures that keeps track of the */
init_dfs_traversal (self, visitable);
dfs_traverse (self, visitable);
@@ -394,8 +391,6 @@ init_bfs_traversal (GeglVisitor *self,
GSList *depends_on_list;
GSList *llink;
- g_return_if_fail (GEGL_IS_VISITOR (self));
-
insert (self, visitable);
depends_on_list = gegl_visitable_depends_on (visitable);
@@ -432,8 +427,6 @@ gegl_visitor_bfs_traverse (GeglVisitor *self,
{
GQueue queue = G_QUEUE_INIT;
- g_return_if_fail (GEGL_IS_VISITOR (self));
-
/* Init all visitables */
init_bfs_traversal (self, visitable);
@@ -498,9 +491,6 @@ gegl_visitor_visit_pad (GeglVisitor *self,
{
GeglVisitorClass *klass;
- g_return_if_fail (GEGL_IS_VISITOR (self));
- g_return_if_fail (GEGL_IS_PAD (pad));
-
klass = GEGL_VISITOR_GET_CLASS (self);
if (klass->visit_pad)
@@ -523,9 +513,6 @@ gegl_visitor_visit_node (GeglVisitor *self,
{
GeglVisitorClass *klass;
- g_return_if_fail (GEGL_IS_VISITOR (self));
- g_return_if_fail (GEGL_IS_NODE (node));
-
klass = GEGL_VISITOR_GET_CLASS (self);
if (klass->visit_node)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]