diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb
index b69c47b476..9e2f4ec347 100644
--- a/actionpack/test/template/date_helper_test.rb
+++ b/actionpack/test/template/date_helper_test.rb
@@ -1620,9 +1620,6 @@ class DateHelperTest < ActionView::TestCase
def test_date_select_with_nil_and_blank_and_discard_year
@post = Post.new
- start_year = Time.now.year-5
- end_year = Time.now.year+5
-
expected = '' + "\n"
expected << %{