Skip to content

Commit 187cb1e

Browse files
committed
remove dead code in productsearchfacedeserializer
1 parent c483d78 commit 187cb1e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

commercetools/commercetools-sdk-java-api/src/main/java/com/commercetools/api/json/ProductSearchFacetResultDeserializer.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import com.fasterxml.jackson.databind.DeserializationContext;
1111
import com.fasterxml.jackson.databind.JsonDeserializer;
1212
import com.fasterxml.jackson.databind.JsonNode;
13-
import com.fasterxml.jackson.databind.node.JsonNodeType;
1413

1514
public class ProductSearchFacetResultDeserializer extends JsonDeserializer<ProductSearchFacetResult> {
1615

@@ -36,20 +35,4 @@ else if (node.has("value")) {
3635
}
3736
return ProductSearchFacetResult.builder().name(node.get("name").asText()).build();
3837
}
39-
40-
private TypeReference<? extends ProductSearchFacetResult> typeRef(JsonNode valueNode) {
41-
JsonNodeType valueNodeType = valueNode.getNodeType();
42-
if (valueNodeType == JsonNodeType.OBJECT) {
43-
if (valueNode.has("buckets")) {
44-
return new TypeReference<ProductSearchFacetResultBucket>() {
45-
};
46-
}
47-
if (valueNode.has("value")) {
48-
return new TypeReference<ProductSearchFacetResultCount>() {
49-
};
50-
}
51-
}
52-
return new TypeReference<ProductSearchFacetResult>() {
53-
};
54-
}
5538
}

0 commit comments

Comments
 (0)