Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Commit

Permalink
Cleanup some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Feb 20, 2014
1 parent 0358316 commit 1760dbf
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions src/graph/graphMixins/SelectionMixin.js
Expand Up @@ -551,50 +551,6 @@ var SelectionMixin = {
}
}
}

}
/**
* select all nodes on given location x, y
* @param {Array} selection an array with node ids
* @param {boolean} append If true, the new selection will be appended to the
* current selection (except for duplicate entries)
* @return {Boolean} changed True if the selection is changed
* @private
*/
/* _selectNodes : function(selection, append) {
var changed = false;
var i, iMax;

// TODO: the selectNodes method is a little messy, rework this

// check if the current selection equals the desired selection
var selectionAlreadyThere = true;
if (selection.length != this.selection.length) {
selectionAlreadyThere = false;
}
else {
for (i = 0, iMax = Math.min(selection.length, this.selection.length); i < iMax; i++) {
if (selection[i] != this.selection[i]) {
selectionAlreadyThere = false;
break;
>>>>>>> develop
}
}
}
}


<<<<<<< HEAD
=======
if (changed) {
// fire the select event
this._trigger('select', {
nodes: this.getSelection()
});
}
>>>>>>> develop

};



0 comments on commit 1760dbf

Please sign in to comment.