diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/io/stream/PlanStreamInput.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/io/stream/PlanStreamInput.java index 7559d6d76dfcc..8e38700a58225 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/io/stream/PlanStreamInput.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/io/stream/PlanStreamInput.java @@ -69,21 +69,11 @@ public PlanStreamInput( PlanNameRegistry registry, NamedWriteableRegistry namedWriteableRegistry, EsqlConfiguration configuration - ) { - this(streamInput, registry, namedWriteableRegistry, configuration, DEFAULT_NAME_ID_FUNC.get()); - } - - public PlanStreamInput( - StreamInput streamInput, - PlanNameRegistry registry, - NamedWriteableRegistry namedWriteableRegistry, - EsqlConfiguration configuration, - LongFunction nameIdFunction ) { super(streamInput, namedWriteableRegistry); this.registry = registry; - this.nameIdFunction = nameIdFunction; this.configuration = configuration; + this.nameIdFunction = DEFAULT_NAME_ID_FUNC.get(); } NameId nameIdFromLongValue(long value) {