From d2dd8821796ca2efa648405a828073cc7184ca28 Mon Sep 17 00:00:00 2001 From: Kathleen DeRusso Date: Thu, 2 May 2024 10:30:50 -0400 Subject: [PATCH] Remove commented out code --- .../results/TextExpansionResults.java | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/results/TextExpansionResults.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/results/TextExpansionResults.java index 1bb7b7ecf25f3..40d7fd221d09f 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/results/TextExpansionResults.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/results/TextExpansionResults.java @@ -22,34 +22,6 @@ public class TextExpansionResults extends NlpInferenceResults { public static final String NAME = "text_expansion_result"; - // public record WeightedToken(String token, float weight) implements Writeable, ToXContentFragment { - // - // public WeightedToken(StreamInput in) throws IOException { - // this(in.readString(), in.readFloat()); - // } - // - // @Override - // public void writeTo(StreamOutput out) throws IOException { - // out.writeString(token); - // out.writeFloat(weight); - // } - // - // @Override - // public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { - // builder.field(token, weight); - // return builder; - // } - // - // public Map asMap() { - // return Map.of(token, weight); - // } - // - // @Override - // public String toString() { - // return Strings.toString(this); - // } - // } - private final String resultsField; private final List weightedTokens;