X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fresourceloader%2FResourceLoaderModule.php;h=6d1529b11a51c8b44d96cfbb85d9af1accd1394d;hb=d8b0d0bb30834064cd3613cd5698515b5ea9689e;hp=3be687b7850a93ddbe1bcbaff5790b61de79ad33;hpb=d256246c2ae337b5232235edb547f3a396e1cbc9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/resourceloader/ResourceLoaderModule.php b/includes/resourceloader/ResourceLoaderModule.php index 3be687b785..6d1529b11a 100644 --- a/includes/resourceloader/ResourceLoaderModule.php +++ b/includes/resourceloader/ResourceLoaderModule.php @@ -620,7 +620,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { * 'https://example.org/image.png' => [ 'as' => 'image' ], * ]; * } - * @encode + * @endcode * * @par Example using HiDPI image variants * @code @@ -636,7 +636,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { * ], * ]; * } - * @encode + * @endcode * * @see ResourceLoaderModule::getHeaders * @since 1.30 @@ -937,41 +937,6 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { return null; } - /** - * Back-compat dummy for old subclass implementations of getModifiedTime(). - * - * This method used to use ObjectCache to track when a hash was first seen. That principle - * stems from a time that ResourceLoader could only identify module versions by timestamp. - * That is no longer the case. Use getDefinitionSummary() directly. - * - * @deprecated since 1.26 Superseded by getVersionHash() - * @param ResourceLoaderContext $context - * @return int UNIX timestamp - */ - public function getHashMtime( ResourceLoaderContext $context ) { - if ( !is_string( $this->getModifiedHash( $context ) ) ) { - return 1; - } - // Dummy that is > 1 - return 2; - } - - /** - * Back-compat dummy for old subclass implementations of getModifiedTime(). - * - * @since 1.23 - * @deprecated since 1.26 Superseded by getVersionHash() - * @param ResourceLoaderContext $context - * @return int UNIX timestamp - */ - public function getDefinitionMtime( ResourceLoaderContext $context ) { - if ( $this->getDefinitionSummary( $context ) === null ) { - return 1; - } - // Dummy that is > 1 - return 2; - } - /** * Check whether this module is known to be empty. If a child class * has an easy and cheap way to determine that this module is