Remove dead, untested and unreachable code in FormHelper.

Closes #3650
This commit is contained in:
mark_story 2014-06-06 08:17:49 -04:00
parent 74cd3db5e1
commit 849ad9a4f5

View file

@ -2866,17 +2866,7 @@ class FormHelper extends AppHelper {
$data = array('am' => 'am', 'pm' => 'pm');
break;
case 'day':
$min = 1;
$max = 31;
if (isset($options['min'])) {
$min = $options['min'];
}
if (isset($options['max'])) {
$max = $options['max'];
}
for ($i = $min; $i <= $max; $i++) {
for ($i = 1; $i <= 31; $i++) {
$data[sprintf('%02d', $i)] = $i;
}
break;