From 684cb8464068b6d140290250afc4a3c5459005db Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 10 Mar 2015 23:22:06 +0100 Subject: [PATCH] Removed unused variables and arguments This fixes #177 #178 and #179 --- Configuration/Configurator.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Configuration/Configurator.php b/Configuration/Configurator.php index 78a476fa06..fa307a0bfc 100644 --- a/Configuration/Configurator.php +++ b/Configuration/Configurator.php @@ -20,7 +20,6 @@ class Configurator { private $backendConfig = array(); private $entitiesConfig = array(); - private $doctrineManager; private $reflector; private $defaultEntityFields = array(); @@ -98,7 +97,7 @@ public function getEntityConfiguration($entityName) $entityConfiguration['show']['fields'] = $this->getFieldsForShowAction($entityConfiguration); $entityConfiguration['edit']['fields'] = $this->getFieldsForFormBasedActions('edit', $entityConfiguration); $entityConfiguration['new']['fields'] = $this->getFieldsForFormBasedActions('new', $entityConfiguration); - $entityConfiguration['search']['fields'] = $this->getFieldsForSearchAction($entityConfiguration); + $entityConfiguration['search']['fields'] = $this->getFieldsForSearchAction(); $entityConfiguration = $this->introspectGettersAndSetters($entityConfiguration); @@ -157,8 +156,6 @@ private function processEntityPropertiesMetadata(ClassMetadata $entityMetadata) */ private function getFieldsForListAction(array $entityConfiguration) { - $entityFields = array(); - // there is a custom configuration for 'list' fields if (count($entityConfiguration['list']['fields']) > 0) { return $this->normalizeFieldsConfiguration('list', $entityConfiguration); @@ -209,10 +206,9 @@ protected function getFieldsForFormBasedActions($action, array $entityConfigurat /** * Returns the list of entity fields on which the search query is performed. * - * @param array $entityConfiguration * @return array The list of fields to use for the search */ - private function getFieldsForSearchAction(array $entityConfiguration) + private function getFieldsForSearchAction() { $excludedFieldNames = array(); $excludedFieldTypes = array('association', 'binary', 'blob', 'date', 'datetime', 'datetimetz', 'guid', 'time', 'object');