[Gridflow-cvs] [svn] commit: r3394 - in /trunk/base: grid.h main.c main.rb

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Apr 1 16:42:03 EDT 2008


Author: matju
Date: Tue Apr  1 16:42:03 2008
New Revision: 3394

Log:
remove FObject#connect

Modified:
    trunk/base/grid.h
    trunk/base/main.c
    trunk/base/main.rb

Modified: trunk/base/grid.h
==============================================================================
--- trunk/base/grid.h (original)
+++ trunk/base/grid.h Tue Apr  1 16:42:03 2008
@@ -25,7 +25,7 @@
 #define __GF_GRID_H
 #include "../gridflow2.h"
 
-#define GF_VERSION "0.9.0"
+#define GF_VERSION "0.9.1"
 
 #ifndef IS_BRIDGE
 #include <stdio.h>

Modified: trunk/base/main.c
==============================================================================
--- trunk/base/main.c (original)
+++ trunk/base/main.c Tue Apr  1 16:42:03 2008
@@ -252,24 +252,6 @@
 	argv2[0] = INT2NUM(outlet);
 	argv2[1] = sym;
 	rb_funcall2(rself,SI(send_out2), argc+2, argv2);
-
-	ID ol = SI(@outlets);
-	Ruby ary = rb_ivar_defined(rself,ol) ? rb_ivar_get(rself,ol) : Qnil;
-	if (ary==Qnil) goto end;
-	if (TYPE(ary)!=T_ARRAY) RAISE("send_out: expected array");
-	ary = rb_ary_fetch(ary,outlet);
-	if (ary==Qnil) goto end;
-	if (TYPE(ary)!=T_ARRAY) RAISE("send_out: expected array");
-	n = rb_ary_len(ary);
-
-	for (int i=0; i<n; i++) {
-		Ruby conn = rb_ary_fetch(ary,i);
-		Ruby rec = rb_ary_fetch(conn,0);
-		int inl = INT(rb_ary_fetch(conn,1));
-		argv2[0] = INT2NUM(inl);
-		rb_funcall2(rec,SI(send_in),argc+2,argv2);
-	}
-end:;
 }
 
 Ruby FObject_s_new(Ruby argc, Ruby *argv, Ruby qlass) {

Modified: trunk/base/main.rb
==============================================================================
--- trunk/base/main.rb (original)
+++ trunk/base/main.rb Tue Apr  1 16:42:03 2008
@@ -116,11 +116,6 @@
 	end
 	attr_reader :outlets
 	def initialize2; end
-	def connect outlet, object, inlet
-		@outlets ||= []
-		@outlets[outlet] ||= []
-		@outlets[outlet].push [object, inlet]
-	end
 	def self.name_lookup sym
 		qlasses = GridFlow.fclasses
 		qlass = qlasses[sym.to_s]



More information about the Gridflow-cvs mailing list