mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-26 23:26:10 +03:00
Remove irrelevant code and comments.
This commit is contained in:
parent
750d45be81
commit
f796925ae5
@ -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 () {
|
||||||
|
@ -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
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user