diff --git a/libs/Autoloader.php b/libs/Autoloader.php index 1673ce2f..9a8ffdaf 100644 --- a/libs/Autoloader.php +++ b/libs/Autoloader.php @@ -41,31 +41,6 @@ class Smarty_Autoloader */ public static $rootClasses = array('smarty' => 'Smarty.class.php'); - /** - * Registers Smarty_Autoloader backward compatible to older installations. - * - * @param bool $prepend Whether to prepend the autoloader or not. - */ - public static function registerBC($prepend = false) - { - /** - * register the class autoloader - */ - if (!defined('SMARTY_SPL_AUTOLOAD')) { - define('SMARTY_SPL_AUTOLOAD', 0); - } - if (SMARTY_SPL_AUTOLOAD - && set_include_path(get_include_path() . PATH_SEPARATOR . SMARTY_SYSPLUGINS_DIR) !== false - ) { - $registeredAutoLoadFunctions = spl_autoload_functions(); - if (!isset($registeredAutoLoadFunctions[ 'spl_autoload' ])) { - spl_autoload_register(); - } - } else { - self::register($prepend); - } - } - /** * Registers Smarty_Autoloader as an SPL autoloader. *