summaryrefslogtreecommitdiff
path: root/scripts/rhizicore.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rhizicore.js')
-rw-r--r--scripts/rhizicore.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 70adfc3b..d3c5e54b 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -833,41 +833,6 @@ function tick(e) {
node.attr('visibility', 'visible');
}
-
-
-
-function deliverableTest() {
- links=[];
- nodes=[];
- var status = "unknown";
- var nodecounter = 150;
- for (var i = 0; i < nodecounter; i++) {
- if (Math.random() > 0.7) status = "done";
- else if (Math.random() > 0.5) status = "current";
- else status = "waiting";
- var end = randomDate(new Date(), new Date("01/01/2018"));
- var start = randomDate(new Date(), end);
- graph.addNodeComplete("Task " + i, "deliverable", "perm", start, end, status);
- }
-
- for (var i = 0; i < nodecounter; i++) {
- var endindex = Math.floor(Math.random() * nodecounter);
- var startindex = Math.floor(Math.random() * nodecounter);
- if (nodes[endindex].start > nodes[startindex].start && startindex !== endindex) {
- graph.addLink("Task " + startindex, "Task " + endindex, "depends on", "perm");
- } else {
- graph.addLink("Task " + endindex, "Task " + startindex, "depends on", "perm");
- }
- }
-
- function randomDate(start, end) {
- return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime()));
- }
-
- graph.update();
-}
-
-
function showInfo(d, i) {
if (d.state !== "chosen") {
graph.highlightNode(d.id, null);