Skip to content

Commit 323870f

Browse files
committed
Clean up some more refactoring leftovers
1 parent 96dbf1a commit 323870f

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

src/DataTableFactory.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ public function setInstantiator(Instantiator $instantiator)
5151

5252
/**
5353
* @param array $options
54-
* @param DataTableState $state
5554
* @return DataTable
5655
*/
57-
public function create(array $options = [], DataTableState $state = null)
56+
public function create(array $options = [])
5857
{
5958
$config = $this->config;
6059

@@ -71,12 +70,11 @@ public function create(array $options = [], DataTableState $state = null)
7170
* @param string|DataTableTypeInterface $type
7271
* @param array $typeOptions
7372
* @param array $options
74-
* @param DataTableState|null $state
7573
* @return DataTable
7674
*/
77-
public function createFromType($type, array $typeOptions = [], array $options = [], DataTableState $state = null)
75+
public function createFromType($type, array $typeOptions = [], array $options = [])
7876
{
79-
$dataTable = $this->create($options, $state);
77+
$dataTable = $this->create($options);
8078

8179
if (is_string($type)) {
8280
$name = $type;

src/Resources/views/datatable.html.twig

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/Resources/views/datatable_js.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,4 @@
207207
};
208208
})(jQuery);
209209
</script>
210-
#}
210+
#}

0 commit comments

Comments
 (0)