Skip to content

Commit

Permalink
Remove dead, untested and unreachable code in FormHelper.
Browse files Browse the repository at this point in the history
Closes #3650
  • Loading branch information
markstory committed Jun 6, 2014
1 parent 74cd3db commit 849ad9a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -2866,17 +2866,7 @@ protected function _generateOptions($name, $options = array()) {
$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;
Expand Down

0 comments on commit 849ad9a

Please sign in to comment.