From 58629d6b95818b7e9e9fa377a4a2729a9f9b9eef Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 26 Jul 2010 13:42:49 -0700 Subject: removing unused code --- lib/arel/algebra/relations/utilities/compound.rb | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'lib') diff --git a/lib/arel/algebra/relations/utilities/compound.rb b/lib/arel/algebra/relations/utilities/compound.rb index 34f80b9e56..7edbff3a31 100644 --- a/lib/arel/algebra/relations/utilities/compound.rb +++ b/lib/arel/algebra/relations/utilities/compound.rb @@ -7,12 +7,6 @@ module Arel :column_for, :sources, :locked, :table_alias, :to => :relation - def self.requires(feature = nil) - @requires ||= nil - @requires = feature if feature - @requires - end - def initialize relation @relation = relation end @@ -38,15 +32,7 @@ module Arel end def engine - requires = self.class.requires - engine = relation.engine - - # Temporary check of whether or not the engine supports where. - if requires && engine.respond_to?(:supports) && !engine.supports(requires) - Memory::Engine.new - else - engine - end + relation.engine end private -- cgit v1.2.3