From 532f64f1059f8c39cc884ab6609aa0a6dac7a1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Junod?= Date: Thu, 28 Oct 2010 06:50:31 +0000 Subject: [PATCH] Remove the activate, deactivate and setMap functions from the WMTSGetFeatureInfo control. Not needed because they do the same as the parent class. r=erilem (closes #2805) git-svn-id: http://svn.openlayers.org/trunk/openlayers@10864 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Control/WMTSGetFeatureInfo.js | 41 -------------------- 1 file changed, 41 deletions(-) diff --git a/lib/OpenLayers/Control/WMTSGetFeatureInfo.js b/lib/OpenLayers/Control/WMTSGetFeatureInfo.js index 851457ad66..f3aef15479 100644 --- a/lib/OpenLayers/Control/WMTSGetFeatureInfo.js +++ b/lib/OpenLayers/Control/WMTSGetFeatureInfo.js @@ -212,35 +212,6 @@ OpenLayers.Control.WMTSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, { } }, - /** - * Method: activate - * Activates the control. - * - * Returns: - * {Boolean} The control was effectively activated. - */ - activate: function () { - if (!this.active) { - this.handler.activate(); - } - return OpenLayers.Control.prototype.activate.apply( - this, arguments - ); - }, - - /** - * Method: deactivate - * Deactivates the control. - * - * Returns: - * {Boolean} The control was effectively deactivated. - */ - deactivate: function () { - return OpenLayers.Control.prototype.deactivate.apply( - this, arguments - ); - }, - /** * Method: getInfoForClick * Called on click @@ -425,18 +396,6 @@ OpenLayers.Control.WMTSGetFeatureInfo = OpenLayers.Class(OpenLayers.Control, { } } }, - - /** - * Method: setMap - * Set the map property for the control. - * - * Parameters: - * map - {} - */ - setMap: function(map) { - this.handler.setMap(map); - OpenLayers.Control.prototype.setMap.apply(this, arguments); - }, CLASS_NAME: "OpenLayers.Control.WMTSGetFeatureInfo" });