Skip to content

Commit

Permalink
Arbot: remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tomka committed Jul 26, 2023
1 parent e5a5d7f commit 9bba054
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions django/applications/catmaid/static/libs/catmaid/Arbor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1308,9 +1308,8 @@ Arbor.prototype._resampleSlab = function(slab, positions, S, delta, sqDelta, min
// are too far apart.

// Collect all nodes before and after k with a weight under 0.01, as
// precomputed in gw: only weights > 0.01 exist
var pivot = slab[k],
points = [k],
// precomputed in gw: only weights > 0.01 exist. The pivot is available as slab[k].
var points = [k],
weights = [1],
j = k - 1;
while (j > 0) {
Expand Down Expand Up @@ -1900,8 +1899,7 @@ Arbor.prototype.simplify = function(keepers) {
var edges = copy.edges,
branches = copy.findBranchNodes(),
seen = {},
paths = [],
root = null;
paths = [];

for (var k=0; k<pins.length; ++k) {
var node = pins[k],
Expand Down

0 comments on commit 9bba054

Please sign in to comment.