Skip to content

Commit

Permalink
Remove old code
Browse files Browse the repository at this point in the history
Co-authored-by: Rafael Schouten <[email protected]>
  • Loading branch information
asinghvi17 and rafaqz authored Jul 26, 2024
1 parent e26c94e commit 3d8a4d3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/methods/sample.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function _sample(alg::UniformSampling, ::GI.LineStringTrait, geom, n)
edges = to_edges(geom)
edge_lengths = map(splat(distance), edges)
# normalize the vector
edge_lengths .= edge_lengths
edge_probabilities = edge_lengths ./ sum(edge_lengths)
edge_idxs = 1:length(edges)
return map(1:n) do _
Expand Down

0 comments on commit 3d8a4d3

Please sign in to comment.