Remove the last readFrom from xpack

This the last Writeable#readFrom in xpack!

Original commit: elastic/x-pack-elasticsearch@5412160bdd
This commit is contained in:
Nik Everett 2016-04-21 09:41:21 -04:00
parent 8c8e33889c
commit c4dc28e7f7
1 changed files with 5 additions and 10 deletions

View File

@ -87,6 +87,11 @@ public class MonitoringBulkResponse extends ActionResponse {
this(in.<Throwable>readThrowable());
}
@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeThrowable(getCause());
}
/**
* The failure message.
*/
@ -108,16 +113,6 @@ public class MonitoringBulkResponse extends ActionResponse {
return cause;
}
@Override
public Error readFrom(StreamInput in) throws IOException {
return new Error(in);
}
@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeThrowable(getCause());
}
@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject();