Remove unused method

[MAILPOET-3037]
This commit is contained in:
Pavel Dohnal
2021-05-17 14:57:21 +02:00
committed by Veljko V
parent 480f911a30
commit 61d73c1b6c
2 changed files with 0 additions and 23 deletions

View File

@ -182,18 +182,6 @@ class Forms extends APIEndpoint {
return $this->successResponse();
}
public function exportsEditor($data = []) {
$id = (isset($data['id']) ? (int)$data['id'] : false);
$form = Form::findOne($id);
if ($form instanceof Form) {
$exports = Util\Export::getAll($form->asArray());
return $this->successResponse($exports);
}
return $this->errorResponse([
APIError::NOT_FOUND => WPFunctions::get()->__('This form does not exist.', 'mailpoet'),
]);
}
public function saveEditor($data = []) {
$formId = (isset($data['id']) ? (int)$data['id'] : 0);
$name = (isset($data['name']) ? $data['name'] : WPFunctions::get()->__('New form', 'mailpoet'));