From 6f19262719cecf2a622056b1c7e08a4527dcac22 Mon Sep 17 00:00:00 2001
From: Kevin Moore <kevin@thinkpixellab.com>
Date: Tue, 3 Apr 2012 15:48:01 -0700
Subject: Remove unused 'cast_code' variable

---
 activerecord/lib/active_record/attribute_methods/read.rb | 2 --
 1 file changed, 2 deletions(-)

(limited to 'activerecord')

diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb
index 9b3724777a..a438de7c28 100644
--- a/activerecord/lib/active_record/attribute_methods/read.rb
+++ b/activerecord/lib/active_record/attribute_methods/read.rb
@@ -67,8 +67,6 @@ module ActiveRecord
           # we first define with the __temp__ identifier, and then use alias method to
           # rename it to what we want.
           def define_method_attribute(attr_name)
-            cast_code = attribute_cast_code(attr_name)
-
             generated_attribute_methods.module_eval <<-STR, __FILE__, __LINE__ + 1
               def __temp__
                 #{internal_attribute_access_code(attr_name, attribute_cast_code(attr_name))}
-- 
cgit v1.2.3