From ad292b4d7f7fcc3f73a5dd494c090dc577a43e11 Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Mon, 15 Apr 2019 12:14:40 +0200 Subject: [PATCH] Remove redundant code [MAILPOET-1808] --- assets/js/src/subscribers/importExport/import.jsx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/assets/js/src/subscribers/importExport/import.jsx b/assets/js/src/subscribers/importExport/import.jsx index 91a0196eae..d5eeffba92 100644 --- a/assets/js/src/subscribers/importExport/import.jsx +++ b/assets/js/src/subscribers/importExport/import.jsx @@ -6,28 +6,13 @@ import jQuery from 'jquery'; import 'asyncqueue'; import MailPoet from 'mailpoet'; import Handlebars from 'handlebars'; -import Papa from 'papaparse'; import Moment from 'moment'; -import sanitizeCSVData from './import/sanitize_csv_data.jsx'; import StepInputValidation from './import/step_input_validation.jsx'; import StepMethodSelection from './import/step_method_selection.jsx'; import StepResults from './import/step_results.jsx'; const SUBSCRIBERS_LIMIT_FOR_VALIDATION = 500; -function getMethodSelectionNextStepLink(importData) { - if (importData === undefined) { - return 'step_data_manipulation'; - } - if (importData.subscribersCount === undefined) { - return 'step_data_manipulation'; - } - if (importData.subscribersCount < SUBSCRIBERS_LIMIT_FOR_VALIDATION) { - return 'step_data_manipulation'; - } - return 'step_input_validation'; -} - function getDataManipulationPreviousStepLink(importData) { if (importData === undefined) { return 'step_method_selection';