From ab4c5e1622af51d0fcdf969c361e855d0001af58 Mon Sep 17 00:00:00 2001 From: MitchellGale-BitQuill Date: Tue, 20 Dec 2022 00:00:09 -0800 Subject: [PATCH] Removed unquote from StringUtils Signed-off-by: MitchellGale-BitQuill --- .../opensearch/sql/common/utils/StringUtils.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/common/src/main/java/org/opensearch/sql/common/utils/StringUtils.java b/common/src/main/java/org/opensearch/sql/common/utils/StringUtils.java index 0699245338..f14e64f55c 100644 --- a/common/src/main/java/org/opensearch/sql/common/utils/StringUtils.java +++ b/common/src/main/java/org/opensearch/sql/common/utils/StringUtils.java @@ -11,20 +11,6 @@ import java.util.Locale; public class StringUtils { - /** - * Unquote any string with mark specified. - * @param text string - * @param mark quotation mark - * @return An unquoted string whose outer pair of (single/double/back-tick) quotes have been - * removed - */ - public static String unquote(String text, String mark) { - if (isQuoted(text, mark)) { - return text.substring(mark.length(), text.length() - mark.length()); - } - return text; - } - /** * Unquote Identifier which has " or ' or ` as mark. * Strings quoted by ' or " with two of these quotes appearing next to each other in the quote