Skip to content

Commit

Permalink
Revert "Merge pull request #282 from github/add-python"
Browse files Browse the repository at this point in the history
This reverts commit c16b8cf, reversing
changes made to 8e99165.
  • Loading branch information
BekaValentine committed Feb 7, 2024
1 parent c16b8cf commit 682c83b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
15 changes: 1 addition & 14 deletions stack-graphs/src/visualization/visualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class StackGraph {

this.graph = graph;
this.paths = paths;
this.cleanup_data();
this.compute_data();

this.current_node = null;
Expand All @@ -34,19 +33,6 @@ class StackGraph {
this.render();
}

cleanup_data() {
let idx = 0;
while (idx < this.graph.edges.length) {
let edge = this.graph.edges[idx];
if (edge.source.file === edge.sink.file && edge.source.local_id === edge.sink.local_id) {
console.log("ignoring self loop", edge);
this.graph.edges.splice(idx, 1);
} else {
idx += 1;
}
}
}

compute_data() {
this.F = {};
this.ID = {};
Expand All @@ -61,6 +47,7 @@ class StackGraph {
const file = graph.files[i];
this.F[file] = i;
}
console.log(this.F);
}

compute_node_data() {
Expand Down
2 changes: 1 addition & 1 deletion tree-sitter-stack-graphs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ walkdir = { version = "2.3", optional = true }

[dev-dependencies]
pretty_assertions = "0.7"
tree-sitter-python = "=0.19.1"
tree-sitter-python = "0.19.1"

0 comments on commit 682c83b

Please sign in to comment.