Skip to content

Commit

Permalink
remove validation methods in client (elastic#41754)
Browse files Browse the repository at this point in the history
remove validation methods in client (elastic#41754)
  • Loading branch information
Hendrik Muhs authored and Gurkan Kaymak committed May 27, 2019
1 parent 7a71790 commit 09e204c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,4 @@ public boolean equals(Object other) {
return Objects.equals(this.query, that.query);
}

public boolean isValid() {
return this.query != null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,4 @@ public boolean equals(Object other) {
return Objects.equals(this.aggregations, that.aggregations);
}

public boolean isValid() {
return this.aggregations != null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@ public Map <String, SingleGroupSource> getGroups() {
return groups;
}

public boolean isValid() {
return this.groups != null;
}

@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ public int hashCode() {
return Objects.hash(groups, aggregationConfig);
}

public boolean isValid() {
return groups.isValid() && aggregationConfig.isValid();
}

public static Builder builder() {
return new Builder();
}
Expand Down

0 comments on commit 09e204c

Please sign in to comment.