Internal: remove bwc leftover

This caused some test failures as the readFrom method was not in sync anymore with the writeTo
This commit is contained in:
javanna 2014-12-04 13:38:20 +01:00 committed by Luca Cavanna
parent 219bb88bc2
commit 5f329bd607
1 changed files with 0 additions and 4 deletions

View File

@ -21,7 +21,6 @@ package org.elasticsearch.action.search;
import org.elasticsearch.ElasticsearchGenerationException;
import org.elasticsearch.ElasticsearchIllegalArgumentException;
import org.elasticsearch.Version;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.IndicesRequest;
@ -545,9 +544,6 @@ public class SearchRequest extends ActionRequest<SearchRequest> implements Indic
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
if (in.getVersion().before(Version.V_1_2_0)) {
in.readByte(); // backward comp. for operation threading
}
searchType = SearchType.fromId(in.readByte());
indices = new String[in.readVInt()];