From 9ce960b3d7418b27b710cdd20ca9fa08d0d4058c Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 21 Jan 2016 09:52:45 +0100 Subject: [PATCH] There are no converters that need the role of the current field. --- app/Helpers/Csv/Converter/BasicConverter.php | 18 ------------------ .../Csv/Converter/ConverterInterface.php | 5 ----- app/Helpers/Csv/Importer.php | 1 - 3 files changed, 24 deletions(-) diff --git a/app/Helpers/Csv/Converter/BasicConverter.php b/app/Helpers/Csv/Converter/BasicConverter.php index bdfb3c2612..2c7bff6f2a 100644 --- a/app/Helpers/Csv/Converter/BasicConverter.php +++ b/app/Helpers/Csv/Converter/BasicConverter.php @@ -18,8 +18,6 @@ class BasicConverter /** @var array */ protected $mapped; /** @var string */ - protected $role; - /** @var string */ protected $value; /** @@ -86,22 +84,6 @@ class BasicConverter $this->mapped = $mapped; } - /** - * @return string - */ - public function getRole() - { - return $this->role; - } - - /** - * @param string $role - */ - public function setRole($role) - { - $this->role = $role; - } - /** * @return string */ diff --git a/app/Helpers/Csv/Converter/ConverterInterface.php b/app/Helpers/Csv/Converter/ConverterInterface.php index cb7aebcade..1eb2e37db9 100644 --- a/app/Helpers/Csv/Converter/ConverterInterface.php +++ b/app/Helpers/Csv/Converter/ConverterInterface.php @@ -36,11 +36,6 @@ interface ConverterInterface */ public function setMapped($mapped); - /** - * @param string $role - */ - public function setRole($role); - /** * @param string $value */ diff --git a/app/Helpers/Csv/Importer.php b/app/Helpers/Csv/Importer.php index 8f139d8bc8..963b615027 100644 --- a/app/Helpers/Csv/Importer.php +++ b/app/Helpers/Csv/Importer.php @@ -255,7 +255,6 @@ class Importer $converter->setIndex($index); $converter->setMapped($this->mapped); $converter->setValue($value); - $converter->setRole($role); $data[$field] = $converter->convert(); } // move to class vars.