Remove irrelevant code and comments.

This commit is contained in:
Aiosa 2023-09-25 08:52:45 +02:00
parent 750d45be81
commit f796925ae5
3 changed files with 2 additions and 15 deletions

View File

@ -2899,10 +2899,7 @@ function OpenSeadragon( options ){
promise.prototype.then = function () { promise.prototype.then = function () {
throw "OpenSeadragon needs promises API. Your browser do not support promises. You can add polyfill.js to import promises."; throw "OpenSeadragon needs promises API. Your browser do not support promises. You can add polyfill.js to import promises.";
}; };
promise.prototype.resolve = function () { promise.prototype.catch = function () {
throw "OpenSeadragon needs promises API. Your browser do not support promises. You can add polyfill.js to import promises.";
};
promise.prototype.reject = function () {
throw "OpenSeadragon needs promises API. Your browser do not support promises. You can add polyfill.js to import promises."; throw "OpenSeadragon needs promises API. Your browser do not support promises. You can add polyfill.js to import promises.";
}; };
promise.prototype.finally = function () { promise.prototype.finally = function () {

View File

@ -514,15 +514,6 @@ $.Tile.prototype = {
}); });
}, },
/**
* FIXME:refactor
* @return {boolean}
*/
dataReady() {
return this.getCache(this.cacheKey).loaded;
},
/** /**
* Renders the tile in a canvas-based context. * Renders the tile in a canvas-based context.
* @function * @function

View File

@ -892,7 +892,6 @@ $.TileSource.prototype = {
* @deprecated * @deprecated
*/ */
destroyTileCache: function (cacheObject) { destroyTileCache: function (cacheObject) {
// FIXME: still allow custom desctruction? probably not - cache system should handle all
$.console.error("[TileSource.destroyTileCache] has been deprecated. Use cache API of a tile instead."); $.console.error("[TileSource.destroyTileCache] has been deprecated. Use cache API of a tile instead.");
//no-op, handled internally //no-op, handled internally
}, },
@ -901,7 +900,7 @@ $.TileSource.prototype = {
* Raw data getter, should return anything that is compatible with the system, or undefined * Raw data getter, should return anything that is compatible with the system, or undefined
* if the system can handle it. * if the system can handle it.
* @param {OpenSeadragon.CacheRecord} cacheObject context cache object * @param {OpenSeadragon.CacheRecord} cacheObject context cache object
* @returns {*} cache data * @returns {Promise<?>} cache data
* @deprecated * @deprecated
*/ */
getTileCacheData: function(cacheObject) { getTileCacheData: function(cacheObject) {