diff --git a/lib/externallib.php b/lib/externallib.php index 17b4a297cbe..da78def4ec6 100644 --- a/lib/externallib.php +++ b/lib/externallib.php @@ -1232,12 +1232,6 @@ class external_settings { } } - /** - * Clone - private - can not be cloned - */ - private final function __clone() { - } - /** * Return only one instance * diff --git a/lib/filestorage/file_system.php b/lib/filestorage/file_system.php index e8a78fb8160..2339c13bd80 100644 --- a/lib/filestorage/file_system.php +++ b/lib/filestorage/file_system.php @@ -34,20 +34,6 @@ defined('MOODLE_INTERNAL') || die(); */ abstract class file_system { - /** - * Private clone method to prevent cloning of the instance. - */ - final protected function __clone() { - return; - } - - /** - * Private wakeup method to prevent unserialising of the instance. - */ - final protected function __wakeup() { - return; - } - /** * Output the content of the specified stored file. *