From 58f1f741b06a227ea6b24beefec752cbb0cb5d5d Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 27 Feb 2012 19:06:00 -0300 Subject: [PATCH] Remove unused methods. --- mindplot/src/main/javascript/IconGroup.js | 25 ----------------------- 1 file changed, 25 deletions(-) diff --git a/mindplot/src/main/javascript/IconGroup.js b/mindplot/src/main/javascript/IconGroup.js index 82879c22..8931a34d 100644 --- a/mindplot/src/main/javascript/IconGroup.js +++ b/mindplot/src/main/javascript/IconGroup.js @@ -70,17 +70,6 @@ mindplot.IconGroup = new Class({ } }, - _findIconFromUrl : function(url) { - var result = null; - this._icons.each(function(el) { - var nativeImage = el.getImage(); - if (nativeImage.getHref() == url) { - result = el; - } - }, this); - return result; - }, - _findIconFromModel : function(iconModel) { var result = null; this._icons.each(function(icon) { @@ -97,19 +86,6 @@ mindplot.IconGroup = new Class({ return result; }, - removeIconByUrl : function(url) { - var icon = this._findIconFromUrl(url); - $assert(icon, 'icon could not be found'); - this._removeIcon(icon); - }, - - removeIcon : function(iconModel) { - $assert(iconModel, "iconModel can not be null"); - - var icon = this._findIconFromModel(iconModel); - this._removeIcon(icon); - }, - removeIconByModel : function(featureModel) { $assert(featureModel, "featureModel can not be null"); @@ -222,7 +198,6 @@ mindplot.IconGroup.RemoveTip = new Class({ } if (this._activeIcon) { - var icon = this._activeIcon; var widget = this._widget; var close = function() {