Skip to content

Commit

Permalink
Merge pull request #654 from Hlavtox/remove-deprecated
Browse files Browse the repository at this point in the history
Remove usage of unused code
  • Loading branch information
Hlavtox committed Nov 29, 2023
2 parents 0938450 + 83aa1c8 commit a21bb45
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 2,508 deletions.
15 changes: 0 additions & 15 deletions AdminSelfUpgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,21 +522,6 @@ public function display()
parent::display();
}

/**
* @deprecated
* Method allowing errors on very old tabs to be displayed.
* On the next major of this module, use an admin controller and get rid of this.
*
* This method is called by functions.php available in the admin root folder.
*/
public function displayErrors()
{
if (empty($this->_errors)) {
return;
}
echo implode(' - ', $this->_errors);
}

/**
* Adapter for trans calls, existing only on PS 1.7.
* Making them available for PS 1.6 as well.
Expand Down
1 change: 0 additions & 1 deletion ajax-upgradetabconfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ function autoupgrade_init_container($callerFilePath)
}

define('AUTOUPGRADE_MODULE_DIR', _PS_MODULE_DIR_ . 'autoupgrade' . DIRECTORY_SEPARATOR);
require_once AUTOUPGRADE_MODULE_DIR . 'functions.php';
require_once AUTOUPGRADE_MODULE_DIR . 'vendor/autoload.php';

$dir = Tools14::safeOutput(Tools14::getValue('dir'));
Expand Down

0 comments on commit a21bb45

Please sign in to comment.