[Gridflow-cvs] [svn] commit: r3246 - /trunk/base/main.rb

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Mar 19 20:24:56 EDT 2008


Author: matju
Date: Wed Mar 19 20:24:55 2008
New Revision: 3246

Log:
removed some obsolete components that no-one ever heard about

Modified:
    trunk/base/main.rb

Modified: trunk/base/main.rb
==============================================================================
--- trunk/base/main.rb (original)
+++ trunk/base/main.rb Wed Mar 19 20:24:55 2008
@@ -107,7 +107,7 @@
 	end
 end
 
-self.post_header = "[gf] "
+self.post_header = ""
 
 def self.gfpost2(fmt,s); post("%s",s) end
 
@@ -132,7 +132,7 @@
 def self.stringify(arg)
 	case arg
 	when Integer, Float, Symbol; arg.to_s
-	when Array; "{#{stringify_list arg}}"
+	when Array; "(#{stringify_list arg})"
 	end
 end
 
@@ -144,16 +144,10 @@
 
 # adding some functionality to that:
 class FObject
-	@broken_ok = false
-	@do_loadbangs = true
 	class << self
-		# global
-		attr_accessor :broken_ok
 		# per-class
 		attr_reader :ninlets
 		attr_reader :noutlets
-		attr_accessor :do_loadbangs
-		attr_accessor :comment
 		def foreign_name; @foreign_name if defined? @foreign_name end
 		def doc(selector=nil,text=nil)
 			return @doc if not selector
@@ -197,17 +191,9 @@
 	attr_writer :args # String
 	attr_accessor :argv # Array
 	attr_reader :outlets
-	attr_accessor :parent_patcher
 	attr_accessor :properties
-	attr_accessor :classname
 	def initialize2; end
-	def args
-		if defined? @args
-			@args
-		else
-			"[#{self.class} ...]"
-		end
-	end
+	def args() if defined? @args then @args else "[#{self.class} ...]" end end
 	alias info args
 	def connect outlet, object, inlet
 		@outlets ||= []
@@ -218,7 +204,6 @@
 		qlasses = GridFlow.fclasses
 		qlass = qlasses[sym.to_s]
 		if not qlass
-			return qlasses['broken'] if @broken_ok
 			raise "object class '#{sym}' not found"
 		end
 		qlass
@@ -238,9 +223,8 @@
 		qlassname = qlass.to_s
 		qlass = name_lookup qlass.to_s unless Class===qlass
 		r = qlass.new(*m)
-		r.classname = qlassname
 		GridFlow.post "%s",r.args if GridFlow.verbose
-		for x in ms do r.send_in(-2, *x) end if FObject.do_loadbangs
+		for x in ms do r.send_in(-2, *x) end
 		r
 	end
 	def inspect
@@ -253,7 +237,6 @@
 		@args << (self.class.foreign_name || self.to_s)
 		@args << " " if s.length>0
 		@args << s << "]"
-		@parent_patcher = nil
 		@properties = {}
 		@init_messages = []
 	end



More information about the Gridflow-cvs mailing list