Skip to content

Commit

Permalink
845 : unnecassary return deleted (iluwatar#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanwarpreet25 authored and iluwatar committed Feb 16, 2019
1 parent eafe52e commit b6b4602
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit b6b4602

Please sign in to comment.