Remove unused methods.

This commit is contained in:
Paulo Gustavo Veiga 2012-02-27 19:06:00 -03:00
parent 368f39261a
commit 58f1f741b0

View File

@ -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) { _findIconFromModel : function(iconModel) {
var result = null; var result = null;
this._icons.each(function(icon) { this._icons.each(function(icon) {
@ -97,19 +86,6 @@ mindplot.IconGroup = new Class({
return result; 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) { removeIconByModel : function(featureModel) {
$assert(featureModel, "featureModel can not be null"); $assert(featureModel, "featureModel can not be null");
@ -222,7 +198,6 @@ mindplot.IconGroup.RemoveTip = new Class({
} }
if (this._activeIcon) { if (this._activeIcon) {
var icon = this._activeIcon;
var widget = this._widget; var widget = this._widget;
var close = function() { var close = function() {