diff options
author | hanemile <hanemile@protonmail.com> | 2019-01-23 16:58:01 +0100 |
---|---|---|
committer | hanemile <hanemile@protonmail.com> | 2019-01-23 16:58:01 +0100 |
commit | a189ed58ad5fe9c8a4c55d58fe7f4af9a2a42d0d (patch) | |
tree | 22fa2a97736fe9d8ee38c34e756928950c1ab43e | |
parent | 62b1d17aa66f7d94685cbf51b21e787064be2d2b (diff) |
removed the recursion limit again
-rw-r--r-- | quadtree.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/quadtree.go b/quadtree.go index a954601..744389a 100644 --- a/quadtree.go +++ b/quadtree.go @@ -62,10 +62,6 @@ func (n *Node) Subdivide() { // Insert inserts the given star into the Node or the tree it is called on func (n *Node) Insert(star Star2D) error { - if n.Boundry.Width < 1e-60 { - return fmt.Errorf("%s", "Max Recursion depth reached!") - } - // if the subtree does not contain a node, insert the star if n.Star == (Star2D{}) { |