summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/query/Model.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-11-05 11:09:51 +0100
committergjoranv <gv@oath.com>2019-01-21 15:09:25 +0100
commitcfc7c2bc1aaddbe183bdc5f73bff433070d602da (patch)
tree46b69dcced0d07de43aa4b2dc8d7571e19346b0b /container-search/src/main/java/com/yahoo/search/query/Model.java
parent3c5531d7cb6557bfea6dc6f1f0d77b96a0569b54 (diff)
Remove deprecated code
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/query/Model.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/query/Model.java52
1 files changed, 0 insertions, 52 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/Model.java b/container-search/src/main/java/com/yahoo/search/query/Model.java
index 379d2d85bcc..28b605fa095 100644
--- a/container-search/src/main/java/com/yahoo/search/query/Model.java
+++ b/container-search/src/main/java/com/yahoo/search/query/Model.java
@@ -93,34 +93,6 @@ public class Model implements Cloneable {
setParent(query);
}
- /**
- * Creates trace a message of language detection results into this Model
- * instance's parent query. Do note this will give bogus results if the
- * Execution instance is not set correctly. This is done automatically
- * inside {@link Execution#search(Query)}. If tracing the same place as
- * creating the query instance, {@link #setExecution(Execution)} has to be
- * invoked first with the same Execution instance the query is intended to
- * be run by.
- *
- * @deprecated do not use; language can now be assigned later and for parts of the query tree, making this quite useless
- */
- // TODO: Remove on Vespa 7
- @Deprecated // OK
- public void traceLanguage() {
- if (getParent().getTraceLevel() < 2) return;
- if (language != null) {
- getParent().trace("Language " + getLanguage() + " specified directly as a parameter", false, 2);
- }
- else {
- Language l = getParsingLanguage();
- // Don't include the query, it will trigger query parsing
- getParent().trace("Detected language: " + l, false, 2);
- getParent().trace("Language " + l + " determined by " +
- (Language.fromEncoding(encoding) != Language.UNKNOWN ? "query encoding" :
- "the characters in the terms") + ".", false, 2);
- }
- }
-
public Language getParsingLanguage() {
return getParsingLanguage(queryString);
}
@@ -535,28 +507,4 @@ public class Model implements Cloneable {
return false;
}
- /**
- * Set the YTrace header value to use when transmitting this model to a
- * search backend (of some kind).
- *
- * @param next string representation of header value
- * @deprecated not used, ytrace has been discontinued
- */
- // TODO: Remove on Vespa 7
- @Deprecated // OK
- public void setYTraceHeaderToNext(String next) { }
-
- /**
- * Get the YTrace header value to use when transmitting this model to a
- * search backend (of some kind). Returns null if no ytrace data is not
- * turned on.
- *
- * @deprecated not used, ytrace has been discontinued
- */
- // TODO: Remove on Vespa 7
- @Deprecated // OK
- public String getYTraceHeaderToNext() {
- return null;
- }
-
}