From 829debe2d05daefe2444360dd138d79d09249313 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Mon, 15 Jan 2024 12:22:09 +0100 Subject: Revert "Support parameter references in embed" --- linguistics/abi-spec.json | 4 +--- .../src/main/java/com/yahoo/language/process/Embedder.java | 10 ---------- 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'linguistics') diff --git a/linguistics/abi-spec.json b/linguistics/abi-spec.json index dc6a62cc463..1ffb879e57e 100644 --- a/linguistics/abi-spec.json +++ b/linguistics/abi-spec.json @@ -344,9 +344,7 @@ "public java.lang.String getDestination()", "public com.yahoo.language.process.Embedder$Context setDestination(java.lang.String)", "public java.lang.String getEmbedderId()", - "public com.yahoo.language.process.Embedder$Context setEmbedderId(java.lang.String)", - "public java.util.Map getContextValues()", - "public com.yahoo.language.process.Embedder$Context setContextValues(java.util.Map)" + "public com.yahoo.language.process.Embedder$Context setEmbedderId(java.lang.String)" ], "fields" : [ ] }, diff --git a/linguistics/src/main/java/com/yahoo/language/process/Embedder.java b/linguistics/src/main/java/com/yahoo/language/process/Embedder.java index d9d2256d0c1..fa141977d5d 100644 --- a/linguistics/src/main/java/com/yahoo/language/process/Embedder.java +++ b/linguistics/src/main/java/com/yahoo/language/process/Embedder.java @@ -88,7 +88,6 @@ public interface Embedder { private Language language = Language.UNKNOWN; private String destination; private String embedderId = "unknown"; - private Map contextValues; public Context(String destination) { this.destination = destination; @@ -139,15 +138,6 @@ public interface Embedder { this.embedderId = embedderId; return this; } - - /** Returns a read-only map of context key-values which can be looked up during conversion. */ - public Map getContextValues() { return contextValues; } - - public Context setContextValues(Map contextValues) { - this.contextValues = Map.copyOf(contextValues); - return this; - } - } class FailingEmbedder implements Embedder { -- cgit v1.2.3