aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/text/Utf8.java
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2020-10-05 13:26:07 +0200
committerMartin Polden <mpolden@mpolden.no>2020-10-05 13:46:23 +0200
commitc2b5c6561939017b1bc36d6845a405f64b34234d (patch)
treeb64d27216e328522e127bfeb32eec7b6d4573d9e /vespajlib/src/main/java/com/yahoo/text/Utf8.java
parent2754be0ed9a6f9e391816ea6ed807e3e18d008a0 (diff)
Remove unused Utf8 methods
In-lined in the tests that used them.
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/text/Utf8.java')
-rw-r--r--vespajlib/src/main/java/com/yahoo/text/Utf8.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/text/Utf8.java b/vespajlib/src/main/java/com/yahoo/text/Utf8.java
index b81f0447d04..e882353469e 100644
--- a/vespajlib/src/main/java/com/yahoo/text/Utf8.java
+++ b/vespajlib/src/main/java/com/yahoo/text/Utf8.java
@@ -1,4 +1,4 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.text;
import java.io.IOException;
@@ -31,11 +31,6 @@ public final class Utf8 {
return StandardCharsets.UTF_8;
}
- /** To be used instead of String.String(byte[] bytes) */
- public static String toStringStd(byte[] data) {
- return new String(data, StandardCharsets.UTF_8);
- }
-
/**
* Utility method as toString(byte[]).
*
@@ -66,13 +61,6 @@ public final class Utf8 {
}
/**
- * Uses String.getBytes directly.
- */
- public static byte[] toBytesStd(String str) {
- return str.getBytes(StandardCharsets.UTF_8);
- }
-
- /**
* Encode a long as its decimal representation, i.e. toAsciiBytes(15L) will
* return "15" encoded as UTF-8. In other words it is an optimized version
* of String.valueOf() followed by UTF-8 encoding. Avoid going through