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

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Mar 21 14:33:11 EDT 2008


Author: matju
Date: Fri Mar 21 14:33:11 2008
New Revision: 3272

Log:
removed some dead code

Modified:
    trunk/base/main.rb

Modified: trunk/base/main.rb
==============================================================================
--- trunk/base/main.rb (original)
+++ trunk/base/main.rb Fri Mar 21 14:33:11 2008
@@ -73,29 +73,6 @@
 	end
 	#STDERR.puts died.inspect
 	died.each {|x| subprocesses.delete x }
-end
-
-def self.packstring_for_nt(nt)
-	case nt
-	when :u, :u8,  :uint8; "C*"
-	when :s, :i16, :int16; "s*"
-	when :i, :i32, :int32; "l*"
-	when :l, :i64, :int64; raise "int64? lol"
-	when :f, :f32, :float32; "f*"
-	when :d, :f64, :float64; "d*"
-	else raise "no decoder for #{nt.inspect}"
-	end
-end
-def self.sizeof_nt(nt)
-	case nt
-	when :u, :u8,  :uint8; 1
-	when :s, :i16, :int16; 2
-	when :i, :i32, :int32; 4
-	when :l, :i64, :int64; 8
-	when :f, :f32, :float32; 4
-	when :d, :f64, :float64; 8
-	else raise "no decoder for #{nt.inspect}"
-	end
 end
 
 self.post_header = ""
@@ -161,9 +138,7 @@
 	def self.subclass(*args,&b)
 		qlass = Class.new self
 		qlass.install(*args)
-		#qlass.module_eval{qlass.instance_eval(&b)}
 		qlass.instance_eval{qlass.module_eval(&b)}
-		#qlass.module_eval(&b)
 	end
 	attr_reader :outlets
 	attr_accessor :properties
@@ -259,13 +234,6 @@
   end
 end
 
-def protect
-  yield
-rescue Exception => e
-  STDERR.puts "#{e.class}: #{e}"
-  STDERR.puts e.backtrace
-end
-
 def GridFlow.load_user_config
 	require "rubyext.rb"
 	user_config_file = ENV["HOME"] + "/.gridflow_startup"



More information about the Gridflow-cvs mailing list