From b198207901c77124b49cce97e00a134771e4a9e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Mu=C3=B1oz=20Escalante?= Date: Mon, 16 Jan 2012 21:57:00 -0500 Subject: [PATCH] Removed outdated code and unuseful comments --- js/graph-editor.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/js/graph-editor.js b/js/graph-editor.js index 62c27ae..e1f5409 100644 --- a/js/graph-editor.js +++ b/js/graph-editor.js @@ -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); @@ -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(); @@ -203,7 +198,6 @@ var GraphEditor = { }; })(f); - // Read in the image file as a data URL. reader.readAsText(f); } } @@ -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(); });