From ea90919da9f32539fefe217772d78be911990b0a Mon Sep 17 00:00:00 2001 From: Ryan Smith <0ryansmith1994@gmail.com> Date: Wed, 8 Apr 2015 15:37:23 +0100 Subject: [PATCH] Removes unused exporter. --- app/controllers/api/Exports.php | 7 +-- app/locker/data/exporter/Exporter.php | 89 --------------------------- 2 files changed, 1 insertion(+), 95 deletions(-) delete mode 100644 app/locker/data/exporter/Exporter.php diff --git a/app/controllers/api/Exports.php b/app/controllers/api/Exports.php index 984feaea40..0138b94f87 100644 --- a/app/controllers/api/Exports.php +++ b/app/controllers/api/Exports.php @@ -1,7 +1,5 @@ exporter = $exporter; - $this->report = $report; $this->repo = $export; } diff --git a/app/locker/data/exporter/Exporter.php b/app/locker/data/exporter/Exporter.php deleted file mode 100644 index e5c093b15f..0000000000 --- a/app/locker/data/exporter/Exporter.php +++ /dev/null @@ -1,89 +0,0 @@ -quoteField(json_encode($object)), 2, -2); - } - } else { - return $json ? null : '""'; - } - } - - /** - * Maps values from old keys to new keys. - * @param Array $statements The statements to be mapped. - * @param AssocArray $fields The fields to be mapped. - * @param Boolean $json determines if fields should be json. - * @return Array The mapped statements. - */ - public function mapFields($statements, $fields, $json = true) { - $mappedStatements = []; - - foreach ($statements as $statement) { - $mappedStatement = []; - foreach ($fields as $field) { - if (!is_null($field['to'])) { - $mappedStatement[$field['to']] = - !is_null($field['from']) ? - $this->getField($statement, $field['from'], $json) : - null; - } - } - - array_push($mappedStatements, $mappedStatement); - } - - return $mappedStatements; - } -} \ No newline at end of file