Skip to content

Commit

Permalink
Removed outdated code and unuseful comments
Browse files Browse the repository at this point in the history
  • Loading branch information
escalant3 committed Jan 17, 2012
1 parent ebc7e78 commit b198207
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions js/graph-editor.js
Expand Up @@ -68,10 +68,6 @@ var GraphEditor = {
alert("ERROR: node " + nodeName + " belongs to a relationship. Delete relationship first");
return;
}
if (nodeName == this.sourcePath || nodeName == this.targetPath){
alert("ERROR: node " + nodeName + " is either start or finish node");
return;
}
var json = this.getGraphNodesJSON();
delete json[nodeName];
this.setGraphNodesJSON(json);
Expand Down Expand Up @@ -172,7 +168,6 @@ var GraphEditor = {
function handleFileSelect(evt) {
var files = evt.target.files; // FileList object

// Loop through the FileList and render image files as thumbnails.
for (var i = 0, f; f = files[i]; i++) {

var reader = new FileReader();
Expand Down Expand Up @@ -203,7 +198,6 @@ var GraphEditor = {
};
})(f);

// Read in the image file as a data URL.
reader.readAsText(f);
}
}
Expand Down Expand Up @@ -281,7 +275,6 @@ var GraphEditor = {
$(document).ready(function(){
GraphEditor.USES_DRAWER = true;
GraphEditor.USES_TYPES = true;
GraphEditor.USES_SCORES = true;
GraphEditor.init();
GraphEditor.refresh();
});
Expand Down

0 comments on commit b198207

Please sign in to comment.