aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/primitives
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/primitives')
-rw-r--r--lib/arel/primitives/attribute.rb12
-rw-r--r--lib/arel/primitives/expression.rb4
-rw-r--r--lib/arel/primitives/value.rb13
3 files changed, 0 insertions, 29 deletions
diff --git a/lib/arel/primitives/attribute.rb b/lib/arel/primitives/attribute.rb
index 6cb558d8ce..5e216770e4 100644
--- a/lib/arel/primitives/attribute.rb
+++ b/lib/arel/primitives/attribute.rb
@@ -18,18 +18,6 @@ module Arel
false
end
- def column
- original_relation.column_for(self)
- end
-
- def format(object)
- object.to_sql(Sql::Attribute.new(self))
- end
-
- def to_sql(formatter = Sql::WhereCondition.new(relation))
- formatter.attribute self
- end
-
module Transformations
def self.included(klass)
klass.send :alias_method, :eql?, :==
diff --git a/lib/arel/primitives/expression.rb b/lib/arel/primitives/expression.rb
index 836f014745..b67a5e1f8e 100644
--- a/lib/arel/primitives/expression.rb
+++ b/lib/arel/primitives/expression.rb
@@ -9,10 +9,6 @@ module Arel
@attribute, @function_sql, @alias, @ancestor = attribute, function_sql, aliaz, ancestor
end
- def to_sql(formatter = Sql::SelectClause.new(relation))
- formatter.expression self
- end
-
def aggregation?
true
end
diff --git a/lib/arel/primitives/value.rb b/lib/arel/primitives/value.rb
index 9c6e518a95..91c4045507 100644
--- a/lib/arel/primitives/value.rb
+++ b/lib/arel/primitives/value.rb
@@ -4,19 +4,6 @@ module Arel
deriving :initialize, :==
delegate :inclusion_predicate_sql, :equality_predicate_sql, :to => :value
-
- def to_sql(formatter = Sql::WhereCondition.new(relation))
- if value =~ /^\(.*\)$/
- value
- else
- formatter.value value
- end
- end
-
- def format(object)
- object.to_sql(Sql::Value.new(relation))
- end
-
def bind(relation)
Value.new(value, relation)
end