diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb
index b69c47b47657bd4037cd9f469fb84c40ac8e8ac7..9e2f4ec347164e4e2e1817549970764bd157b0f8 100644
--- a/actionpack/test/template/date_helper_test.rb
+++ b/actionpack/test/template/date_helper_test.rb
@@ -1620,9 +1620,6 @@ def test_date_select_with_nil_and_blank_and_discard_month
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 << %{