mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Remove unused methods.
This commit is contained in:
parent
368f39261a
commit
58f1f741b0
@ -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() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user