summaryrefslogtreecommitdiffstats
path: root/document/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'document/src/main')
-rw-r--r--document/src/main/java/com/yahoo/document/json/readers/TensorReader.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/document/src/main/java/com/yahoo/document/json/readers/TensorReader.java b/document/src/main/java/com/yahoo/document/json/readers/TensorReader.java
index 0b7b1ae9996..e487fd2ec57 100644
--- a/document/src/main/java/com/yahoo/document/json/readers/TensorReader.java
+++ b/document/src/main/java/com/yahoo/document/json/readers/TensorReader.java
@@ -14,7 +14,6 @@ import com.yahoo.tensor.TensorType;
import static com.yahoo.document.json.readers.JsonParserHelpers.*;
import static com.yahoo.tensor.serialization.JsonFormat.decodeHexString;
-import static com.yahoo.tensor.serialization.JsonFormat.decodeNumberString;
/**
* Reads the tensor format defined at
@@ -244,9 +243,6 @@ public class TensorReader {
private static double readDouble(TokenBuffer buffer) {
try {
- if (buffer.current() == JsonToken.VALUE_STRING) {
- return decodeNumberString(buffer.currentText());
- }
return Double.parseDouble(buffer.currentText());
}
catch (NumberFormatException e) {