Remove disposeInternal of ImageTile and reproj/Tile

This commit is contained in:
Andreas Hocevar
2020-01-05 00:13:05 +01:00
parent b91e1a893d
commit ae336f0a1b
2 changed files with 0 additions and 24 deletions

View File

@@ -58,20 +58,6 @@ class ImageTile extends Tile {
} }
/**
* @inheritDoc
*/
disposeInternal() {
if (this.state == TileState.LOADING) {
this.unlistenImage_();
this.image_ = getBlankImage();
}
if (this.interimTile) {
this.interimTile.dispose();
}
super.disposeInternal();
}
/** /**
* Get the HTML image element for this tile (may be a Canvas, Image, or Video). * Get the HTML image element for this tile (may be a Canvas, Image, or Video).
* @return {HTMLCanvasElement|HTMLImageElement|HTMLVideoElement} Image. * @return {HTMLCanvasElement|HTMLImageElement|HTMLVideoElement} Image.

View File

@@ -203,16 +203,6 @@ class ReprojTile extends Tile {
} }
} }
/**
* @inheritDoc
*/
disposeInternal() {
if (this.state == TileState.LOADING) {
this.unlistenSources_();
}
super.disposeInternal();
}
/** /**
* Get the HTML Canvas element for this tile. * Get the HTML Canvas element for this tile.
* @return {HTMLCanvasElement} Canvas. * @return {HTMLCanvasElement} Canvas.