diff --git a/lib/externallib.php b/lib/externallib.php index 17b4a297cbec8..da78def4ec655 100644 --- a/lib/externallib.php +++ b/lib/externallib.php @@ -1232,12 +1232,6 @@ protected function __construct() { } } - /** - * 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 e8a78fb816051..2339c13bd80d4 100644 --- a/lib/filestorage/file_system.php +++ b/lib/filestorage/file_system.php @@ -34,20 +34,6 @@ */ 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. *