Remove unused inherits

This commit is contained in:
Tim Schaub
2018-07-18 00:13:43 -06:00
parent 1a5cf52b61
commit b7b15eb7f0
63 changed files with 53 additions and 65 deletions

View File

@@ -1,7 +1,6 @@
/**
* @module ol/layer/Base
*/
import {inherits} from '../util.js';
import BaseObject from '../Object.js';
import LayerProperty from '../layer/Property.js';
import {clamp} from '../math.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/layer/Group
*/
import {getUid, inherits} from '../util.js';
import {getUid} from '../util.js';
import Collection from '../Collection.js';
import CollectionEventType from '../CollectionEventType.js';
import {getChangeEventType} from '../Object.js';
@@ -105,7 +105,7 @@ class LayerGroup extends BaseLayer {
* @param {module:ol/events/Event} event Event.
* @private
*/
handleLayersChanged_(event) {
handleLayersChanged_() {
this.layersListenerKeys_.forEach(unlistenByKey);
this.layersListenerKeys_.length = 0;

View File

@@ -2,7 +2,6 @@
* @module ol/layer/Heatmap
*/
import {listen} from '../events.js';
import {inherits} from '../util.js';
import {getChangeEventType} from '../Object.js';
import {createCanvasContext2D} from '../dom.js';
import VectorLayer from '../layer/Vector.js';

View File

@@ -1,7 +1,6 @@
/**
* @module ol/layer/Image
*/
import {inherits} from '../util.js';
import LayerType from '../LayerType.js';
import Layer from '../layer/Layer.js';

View File

@@ -3,7 +3,7 @@
*/
import {listen, unlistenByKey} from '../events.js';
import EventType from '../events/EventType.js';
import {getUid, inherits} from '../util.js';
import {getUid} from '../util.js';
import {getChangeEventType} from '../Object.js';
import BaseLayer from '../layer/Base.js';
import LayerProperty from '../layer/Property.js';

View File

@@ -1,7 +1,6 @@
/**
* @module ol/layer/Tile
*/
import {inherits} from '../util.js';
import LayerType from '../LayerType.js';
import Layer from '../layer/Layer.js';
import TileProperty from '../layer/TileProperty.js';

View File

@@ -1,7 +1,6 @@
/**
* @module ol/layer/Vector
*/
import {inherits} from '../util.js';
import LayerType from '../LayerType.js';
import Layer from '../layer/Layer.js';
import VectorRenderType from '../layer/VectorRenderType.js';

View File

@@ -1,7 +1,6 @@
/**
* @module ol/layer/VectorTile
*/
import {inherits} from '../util.js';
import LayerType from '../LayerType.js';
import {assert} from '../asserts.js';
import TileProperty from '../layer/TileProperty.js';

View File

@@ -1,9 +1,7 @@
/**
* @module ol/render/Box
*/
// FIXME add rotation
import {inherits} from '../util.js';
import Disposable from '../Disposable.js';
import Polygon from '../geom/Polygon.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/Event
*/
import {inherits} from '../util.js';
import Event from '../events/Event.js';
class RenderEvent extends Event {

View File

@@ -1,7 +1,6 @@
/**
* @module ol/render/canvas/ImageReplay
*/
import {inherits} from '../../util.js';
import CanvasInstruction from '../canvas/Instruction.js';
import CanvasReplay from '../canvas/Replay.js';

View File

@@ -5,7 +5,6 @@
// FIXME need to handle large thick features (where pixel size matters)
// FIXME add offset and end to ol/geom/flat/transform~transform2D?
import {inherits} from '../../util.js';
import {equals} from '../../array.js';
import {asColorLike} from '../../colorlike.js';
import {intersects} from '../../extent.js';

View File

@@ -1,7 +1,6 @@
/**
* @module ol/render/canvas/LineStringReplay
*/
import {inherits} from '../../util.js';
import CanvasInstruction, {strokeInstruction, beginPathInstruction} from '../canvas/Instruction.js';
import CanvasReplay from '../canvas/Replay.js';

View File

@@ -1,7 +1,6 @@
/**
* @module ol/render/canvas/PolygonReplay
*/
import {inherits} from '../../util.js';
import {asString} from '../../color.js';
import {snap} from '../../geom/flat/simplify.js';
import {defaultFillStyle} from '../canvas.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/canvas/Replay
*/
import {getUid, inherits} from '../../util.js';
import {getUid} from '../../util.js';
import {UNDEFINED} from '../../functions.js';
import {equals, reverseSubArray} from '../../array.js';
import {asColorLike} from '../../colorlike.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/canvas/ReplayGroup
*/
import {inherits} from '../../util.js';
import {numberSafeCompareFunction} from '../../array.js';
import {createCanvasContext2D} from '../../dom.js';
import {buffer, createEmpty, extendCoordinate} from '../../extent.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/canvas/TextReplay
*/
import {getUid, inherits} from '../../util.js';
import {getUid} from '../../util.js';
import {asColorLike} from '../../colorlike.js';
import {createCanvasContext2D} from '../../dom.js';
import {intersects} from '../../extent.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/webgl/CircleReplay
*/
import {getUid, inherits} from '../../util.js';
import {getUid} from '../../util.js';
import {equals} from '../../array.js';
import {asArray} from '../../color.js';
import {intersects} from '../../extent.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/webgl/ImageReplay
*/
import {getUid, inherits} from '../../util.js';
import {getUid} from '../../util.js';
import WebGLTextureReplay from '../webgl/TextureReplay.js';
import WebGLBuffer from '../../webgl/Buffer.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/webgl/Immediate
*/
import {inherits} from '../../util.js';
import {intersects} from '../../extent.js';
import GeometryType from '../../geom/GeometryType.js';
import ReplayType from '../ReplayType.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/webgl/LineStringReplay
*/
import {getUid, inherits} from '../../util.js';
import {getUid} from '../../util.js';
import {equals} from '../../array.js';
import {asArray} from '../../color.js';
import {intersects} from '../../extent.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/webgl/PolygonReplay
*/
import {getUid, inherits} from '../../util.js';
import {getUid} from '../../util.js';
import {equals} from '../../array.js';
import {asArray} from '../../color.js';
import {intersects} from '../../extent.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/webgl/Replay
*/
import {inherits} from '../../util.js';
import {getCenter} from '../../extent.js';
import VectorContext from '../VectorContext.js';
import {

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/webgl/ReplayGroup
*/
import {inherits} from '../../util.js';
import {numberSafeCompareFunction} from '../../array.js';
import {buffer, createOrUpdateFromCoordinate} from '../../extent.js';
import {isEmpty} from '../../obj.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/webgl/TextReplay
*/
import {getUid, inherits} from '../../util.js';
import {getUid} from '../../util.js';
import {asColorLike} from '../../colorlike.js';
import {createCanvasContext2D} from '../../dom.js';
import GeometryType from '../../geom/GeometryType.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/webgl/TextureReplay
*/
import {getUid, inherits} from '../../util.js';
import {getUid} from '../../util.js';
import {intersects} from '../../extent.js';
import {isEmpty} from '../../obj.js';
import {fragment, vertex} from '../webgl/texturereplay/defaultshader.js';

View File

@@ -2,7 +2,7 @@
* @module ol/reproj/Image
*/
import {ERROR_THRESHOLD} from './common.js';
import {inherits} from '../util.js';
import ImageBase from '../ImageBase.js';
import ImageState from '../ImageState.js';
import {listen, unlistenByKey} from '../events.js';

View File

@@ -2,7 +2,7 @@
* @module ol/reproj/Tile
*/
import {ERROR_THRESHOLD} from './common.js';
import {inherits} from '../util.js';
import Tile from '../Tile.js';
import TileState from '../TileState.js';
import {listen, unlistenByKey} from '../events.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/BingMaps
*/
import {inherits} from '../util.js';
import {createFromTileUrlFunctions} from '../tileurlfunction.js';
import {applyTransform, intersects} from '../extent.js';
import {jsonp as requestJSONP} from '../net.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/CartoDB
*/
import {inherits} from '../util.js';
import {assign} from '../obj.js';
import SourceState from '../source/State.js';
import XYZ from '../source/XYZ.js';

View File

@@ -2,7 +2,7 @@
* @module ol/source/Cluster
*/
import {getUid, inherits} from '../util.js';
import {getUid} from '../util.js';
import {assert} from '../asserts.js';
import Feature from '../Feature.js';
import {scale as scaleCoordinate, add as addCoordinate} from '../coordinate.js';

View File

@@ -2,7 +2,7 @@
* @module ol/source/Image
*/
import {ENABLE_RASTER_REPROJECTION} from '../reproj/common.js';
import {inherits} from '../util.js';
import ImageState from '../ImageState.js';
import {linearFindNearest} from '../array.js';
import Event from '../events/Event.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/ImageArcGISRest
*/
import {inherits} from '../util.js';
import ImageWrapper from '../Image.js';
import {assert} from '../asserts.js';
import {listen} from '../events.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/ImageCanvas
*/
import {inherits} from '../util.js';
import ImageCanvas from '../ImageCanvas.js';
import {containsExtent, getHeight, getWidth, scaleFromCenter} from '../extent.js';
import ImageSource from '../source/Image.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/ImageMapGuide
*/
import {inherits} from '../util.js';
import ImageWrapper from '../Image.js';
import {listen} from '../events.js';
import EventType from '../events/EventType.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/ImageStatic
*/
import {inherits} from '../util.js';
import ImageWrapper from '../Image.js';
import ImageState from '../ImageState.js';
import {createCanvasContext2D} from '../dom.js';

View File

@@ -3,7 +3,7 @@
*/
import {DEFAULT_WMS_VERSION} from './common.js';
import {inherits} from '../util.js';
import ImageWrapper from '../Image.js';
import {assert} from '../asserts.js';
import {listen} from '../events.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/OSM
*/
import {inherits} from '../util.js';
import XYZ from '../source/XYZ.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/Raster
*/
import {getUid, inherits} from '../util.js';
import {getUid} from '../util.js';
import ImageCanvas from '../ImageCanvas.js';
import TileQueue from '../TileQueue.js';
import {createCanvasContext2D} from '../dom.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/Source
*/
import {inherits} from '../util.js';
import {UNDEFINED} from '../functions.js';
import BaseObject from '../Object.js';
import {get as getProjection} from '../proj.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/Stamen
*/
import {inherits} from '../util.js';
import {ATTRIBUTION as OSM_ATTRIBUTION} from '../source/OSM.js';
import XYZ from '../source/XYZ.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/Tile
*/
import {inherits} from '../util.js';
import {UNDEFINED} from '../functions.js';
import TileCache from '../TileCache.js';
import TileState from '../TileState.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/TileArcGISRest
*/
import {inherits} from '../util.js';
import {createEmpty} from '../extent.js';
import {modulo} from '../math.js';
import {assign} from '../obj.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/TileDebug
*/
import {inherits} from '../util.js';
import Tile from '../Tile.js';
import TileState from '../TileState.js';
import {createCanvasContext2D} from '../dom.js';

View File

@@ -2,7 +2,7 @@
* @module ol/source/TileImage
*/
import {ENABLE_RASTER_REPROJECTION} from '../reproj/common.js';
import {getUid, inherits} from '../util.js';
import {getUid} from '../util.js';
import ImageTile from '../ImageTile.js';
import TileCache from '../TileCache.js';
import TileState from '../TileState.js';

View File

@@ -7,7 +7,7 @@
* @see http://mapbox.com/developers/api/
*/
import {inherits} from '../util.js';
import {createFromTemplates} from '../tileurlfunction.js';
import {assert} from '../asserts.js';
import {applyTransform, intersects} from '../extent.js';

View File

@@ -3,7 +3,7 @@
*/
import {DEFAULT_WMS_VERSION} from './common.js';
import {inherits} from '../util.js';
import {assert} from '../asserts.js';
import {buffer, createEmpty} from '../extent.js';
import {assign} from '../obj.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/UTFGrid
*/
import {inherits} from '../util.js';
import Tile from '../Tile.js';
import TileState from '../TileState.js';
import {createFromTemplates, nullTileUrlFunction} from '../tileurlfunction.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/UrlTile
*/
import {getUid, inherits} from '../util.js';
import {getUid} from '../util.js';
import TileState from '../TileState.js';
import {expandUrl, createFromTemplates, nullTileUrlFunction} from '../tileurlfunction.js';
import TileSource, {TileSourceEvent} from '../source/Tile.js';

View File

@@ -2,7 +2,7 @@
* @module ol/source/Vector
*/
import {getUid, inherits} from '../util.js';
import {getUid} from '../util.js';
import Collection from '../Collection.js';
import CollectionEventType from '../CollectionEventType.js';
import ObjectEventType from '../ObjectEventType.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/VectorTile
*/
import {inherits} from '../util.js';
import TileState from '../TileState.js';
import VectorImageTile, {defaultLoadFunction} from '../VectorImageTile.js';
import Tile from '../VectorTile.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/WMTS
*/
import {inherits} from '../util.js';
import {expandUrl, createFromTileUrlFunctions, nullTileUrlFunction} from '../tileurlfunction.js';
import {find, findIndex, includes} from '../array.js';
import {containsExtent} from '../extent.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/source/XYZ
*/
import {inherits} from '../util.js';
import TileImage from '../source/TileImage.js';
import {createXYZ, extentFromProjection} from '../tilegrid.js';

View File

@@ -2,7 +2,7 @@
* @module ol/source/Zoomify
*/
import {DEFAULT_TILE_SIZE} from '../tilegrid/common.js';
import {inherits} from '../util.js';
import ImageTile from '../ImageTile.js';
import TileState from '../TileState.js';
import {expandUrl, createFromTileUrlFunctions} from '../tileurlfunction.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/structs/LRUCache
*/
import {inherits} from '../util.js';
import {assert} from '../asserts.js';
import EventTarget from '../events/EventTarget.js';
import EventType from '../events/EventType.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/style/Circle
*/
import {inherits} from '../util.js';
import RegularShape from '../style/RegularShape.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/style/Icon
*/
import {getUid, inherits} from '../util.js';
import {getUid} from '../util.js';
import ImageState from '../ImageState.js';
import {assert} from '../asserts.js';
import {asArray} from '../color.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/style/IconImage
*/
import {inherits} from '../util.js';
import {createCanvasContext2D} from '../dom.js';
import {listenOnce, unlistenByKey} from '../events.js';
import EventTarget from '../events/EventTarget.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/style/RegularShape
*/
import {inherits} from '../util.js';
import {asColorLike} from '../colorlike.js';
import {createCanvasContext2D} from '../dom.js';
import {CANVAS_LINE_DASH} from '../has.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/tilegrid/WMTS
*/
import {inherits} from '../util.js';
import {find} from '../array.js';
import {get as getProjection} from '../proj.js';
import TileGrid from '../tilegrid/TileGrid.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/webgl/Context
*/
import {getUid, inherits} from '../util.js';
import {getUid} from '../util.js';
import {EXTENSIONS as WEBGL_EXTENSIONS} from '../webgl.js';
import Disposable from '../Disposable.js';
import {includes} from '../array.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/webgl/Fragment
*/
import {inherits} from '../util.js';
import {FRAGMENT_SHADER} from '../webgl.js';
import WebGLShader from '../webgl/Shader.js';

View File

@@ -1,7 +1,7 @@
/**
* @module ol/webgl/Vertex
*/
import {inherits} from '../util.js';
import {VERTEX_SHADER} from '../webgl.js';
import WebGLShader from '../webgl/Shader.js';