提交 b6b4602b 编写于 作者: K kanwarpreet25 提交者: Ilkka Seppälä

845 : unnecassary return deleted (#856)

上级 eafe52e1
......@@ -55,16 +55,13 @@ public class QuadTree {
}
void insert(Point p) {
if (!this.boundary.contains(p)) {
return;
} else {
if (this.boundary.contains(p)) {
if (this.points.size() < this.capacity) {
points.put(p.id, p);
} else {
if (!this.divided) {
this.divide();
}
if (this.northwest.boundary.contains(p)) {
this.northwest.insert(p);
} else if (this.northeast.boundary.contains(p)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册