diff --git a/lib/OpenLayers/BaseTypes.js b/lib/OpenLayers/BaseTypes.js index d06d2b5a77..0fc0a2889f 100644 --- a/lib/OpenLayers/BaseTypes.js +++ b/lib/OpenLayers/BaseTypes.js @@ -43,15 +43,6 @@ OpenLayers.Pixel.prototype = { return ("x=" + this.x + ",y=" + this.y); }, - /** - * @deprecated - * - * @type OpenLayers.Pixel - */ - copyOf:function() { - return this.clone(); - }, - /** * @type OpenLayers.Pixel */ @@ -145,16 +136,6 @@ OpenLayers.Size.prototype = { return ("w=" + this.w + ",h=" + this.h); }, - /** - * @deprecated - * - * @return New OpenLayers.Size object with the same w and h values - * @type OpenLayers.Size - */ - copyOf:function() { - return this.clone(); - }, - /** * @return New OpenLayers.Size object with the same w and h values * @type OpenLayers.Size @@ -234,16 +215,6 @@ OpenLayers.LonLat.prototype = { return (this.lon + ", " + this.lat); }, - /** - * @deprecated - * - * @return New OpenLayers.LonLat object with the same lon and lat values - * @type OpenLayers.LonLat - */ - copyOf:function() { - return this.clone(); - }, - /** * @return New OpenLayers.LonLat object with the same lon and lat values * @type OpenLayers.LonLat @@ -350,16 +321,6 @@ OpenLayers.Bounds.prototype = { this.top = top; }, - /** - * @deprecated - * - * @returns A fresh copy of the bounds - * @type OpenLayers.Bounds - */ - copyOf:function() { - return this.clone(); - }, - /** * @returns A fresh copy of the bounds * @type OpenLayers.Bounds @@ -702,16 +663,6 @@ Array.prototype.remove = function(item) { return this; } -/** - * @deprecated - * - * @returns A fresh copy of the array - * @type Array - */ -Array.prototype.copyOf = function() { - return this.clone(); -}; - /** * @returns A fresh copy of the array * @type Array diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 90e493ee7b..bf7e3f107b 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -88,17 +88,6 @@ OpenLayers.Layer.Grid.prototype = } }, - /** - * @deprecated User should just set the 'tileSize' via options - * - * @param {OpenLayers.Size} size - */ - setTileSize: function (size) { - if (size) { - this.tileSize = size.clone(); - } - }, - /** * @param {String} tileID * diff --git a/lib/OpenLayers/Layer/HTTPRequest.js b/lib/OpenLayers/Layer/HTTPRequest.js index 921d2c6c9b..b6ba775398 100644 --- a/lib/OpenLayers/Layer/HTTPRequest.js +++ b/lib/OpenLayers/Layer/HTTPRequest.js @@ -79,17 +79,6 @@ OpenLayers.Layer.HTTPRequest.prototype = this.url = newUrl; }, - - /** Deprecated wrapper for mergeNewParams() just so as to not break - * anyone's code who might be using this - * - * @deprecated - * @param {Object} newParams - */ - changeParams:function(newParams) { - this.mergeNewParams(newParams); - }, - /** * @param {Object} newParams */ diff --git a/lib/OpenLayers/Map.js b/lib/OpenLayers/Map.js index f36fefdc0c..7cdeba2462 100644 --- a/lib/OpenLayers/Map.js +++ b/lib/OpenLayers/Map.js @@ -706,16 +706,7 @@ OpenLayers.Map.prototype = { return maxResolution; }, - - /** Wrapper to maintain defined API functionality. - * getMaxExtent() should be used from now on. - * - * @deprecated - */ - getFullExtent: function() { - return this.getMaxExtent(); - }, - + /** * @type OpenLayers.Bounds */ @@ -885,15 +876,6 @@ OpenLayers.Map.prototype = { this.getZoomForExtent(bounds)); }, - /** Wrapper to maintain defined API functionality. - * zoomToMaxExtent() should be used from now on. - * - * @deprecated - */ - zoomToFullExtent: function() { - this.zoomToMaxExtent(); - }, - /** Zoom to the full extent and recenter. */ zoomToMaxExtent: function() { diff --git a/tests/test_Layer_HTTPRequest.html b/tests/test_Layer_HTTPRequest.html index f5a08bc84a..92221e3c2e 100644 --- a/tests/test_Layer_HTTPRequest.html +++ b/tests/test_Layer_HTTPRequest.html @@ -64,30 +64,6 @@ t.eq( layer.url, "foo", "setUrl() works"); } - - /** - * @deprecated - */ - function test_04_Layer_HTTPRequest_changeParams (t) { - t.plan( 3 ); - - layer = new OpenLayers.Layer.HTTPRequest(name, url, params, options); - - var newParams = { layers: 'sooper', - chickpeas: 'image/png'}; - - layer.changeParams(newParams); - - t.eq( layer.params.layers, "sooper", "changeParams() overwrites well"); - t.eq( layer.params.chickpeas, "image/png", "changeParams() adds well"); - - newParams.chickpeas = 151; - - t.eq( layer.params.chickpeas, "image/png", "changeParams() makes clean copy of hash"); - - - } - function test_05_Layer_HTTPRequest_mergeNewParams (t) { t.plan( 3 );