Skip to content

Commit fe7e745

Browse files
committed
Removed redundant code
1 parent 8e8a39e commit fe7e745

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

server/src/main/java/org/elasticsearch/index/query/RegexpQueryBuilder.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,6 @@ public RegexpQueryBuilder(StreamInput in) throws IOException {
9595
fieldName = in.readString();
9696
value = in.readString();
9797
syntaxFlagsValue = in.readVInt();
98-
if (in.getVersion().before(Version.V_8_0_0)) {
99-
// IMPORTANT - older versions of Lucene/elasticsearch used 0xffff to
100-
// represent ALL, but newer versions of Lucene will error given syntax flag
101-
// values > 0xff
102-
// Here, we mute the bits beyond 0xff to provide BWC
103-
syntaxFlagsValue = syntaxFlagsValue & RegExp87.ALL;
104-
}
10598
maxDeterminizedStates = in.readVInt();
10699
rewrite = in.readOptionalString();
107100
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {

0 commit comments

Comments
 (0)