diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-05-31 23:44:34 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2022-06-08 11:45:23 +0200 |
commit | ae2bd131daba49f79f03e23e0fa0b6235a72614b (patch) | |
tree | 3e40b8504c5d6f54083f307b393e66d577278ad6 /container-search | |
parent | dd95b00334ce9e2eebaf59f79082889a2919635a (diff) |
Remove on Vespa 8
Diffstat (limited to 'container-search')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/querytransform/QueryTreeUtil.java | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/querytransform/QueryTreeUtil.java b/container-search/src/main/java/com/yahoo/search/querytransform/QueryTreeUtil.java deleted file mode 100644 index 1cf6396468e..00000000000 --- a/container-search/src/main/java/com/yahoo/search/querytransform/QueryTreeUtil.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.search.querytransform; - -import com.yahoo.prelude.query.AndItem; -import com.yahoo.prelude.query.Item; -import com.yahoo.prelude.query.QueryCanonicalizer; -import com.yahoo.search.Query; -import com.yahoo.search.query.QueryTree; - -/** - * Utility class for manipulating a QueryTree. - * - * @author geirst - * @deprecated use QueryTree.and instead // TODO: Remove on Vespa 8 - */ -@Deprecated -public class QueryTreeUtil { - - /** - * Adds the given item to this query - * - * @return the new root of the query tree - */ - static public Item andQueryItemWithRoot(Query query, Item item) { - return andQueryItemWithRoot(query.getModel().getQueryTree(), item); - } - - /** - * Adds the given item to this query - * - * @return the new root of the query tree - */ - static public Item andQueryItemWithRoot(QueryTree tree, Item item) { - return tree.and(item); - } - -} |