Skip to content

Commit

Permalink
0.12.3: Small tidy up prior to code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
classaxe committed Nov 8, 2018
1 parent b01abce commit cae41dd
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/Form/Base.php
Expand Up @@ -46,7 +46,6 @@ public function addPaging(FormBuilderInterface &$formBuilder, array $options)
TextType::class,
[
'label' => 'Show',
// 'choices' => $this->getlimitOptions($this->options['total']),
'data' => $this->options['limit']
]
)
Expand All @@ -71,7 +70,6 @@ public function addPaging(FormBuilderInterface &$formBuilder, array $options)
TextType::class,
[
'label' => ' ',
// 'choices' => $this->getPageOptions($this->options['total'], $this->options['limit']),
'data' => 0,
'attr' => ['style' => 'display:none']
]
Expand Down Expand Up @@ -106,21 +104,6 @@ public function addPaging(FormBuilderInterface &$formBuilder, array $options)
});
}

/**
* @param $limit
* @return array
*/
private function getlimitOptions($limit)
{
$options = ['All Results' => -1];
foreach ($this->limitOptions as $value) {
if ($value < $limit) {
$options[$value.' results'] = $value;
}
}
return $options;
}

/**
* @param $total
* @param $limit
Expand Down

0 comments on commit cae41dd

Please sign in to comment.