From 2ccce76d94046d017a9b02a0b033e3fff9483e98 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 16 Dec 2009 00:50:23 -0800 Subject: get rid of the magic EvCore.setup It gets in the way of Rev/EM-based models that won't use EvCore. It doesn't actually do anything useful except making an extra layer of indirection to follow. --- lib/rainbows/ev_core.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/rainbows/ev_core.rb') diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index 10d9557..0d3c079 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -11,10 +11,6 @@ module Rainbows # Apps may return this Rack response: AsyncResponse = [ -1, {}, [] ] ASYNC_CALLBACK = "async.callback".freeze - def self.setup(klass) - klass.const_set(:APP, G.server.app) - end - def post_init @remote_addr = ::TCPSocket === @_io ? @_io.peeraddr.last : LOCALHOST @env = {} -- cgit v1.2.3-24-ge0c7