From 80d046b31cda2280a2c1580cdf5aab2e7402021a Mon Sep 17 00:00:00 2001 From: Ramesh Reddy Date: Fri, 9 Sep 2016 19:04:16 -0500 Subject: [PATCH] OLINGO-1009: removing unused method --- .../server/core/serializer/json/ODataJsonSerializer.java | 7 ------- .../server/core/serializer/xml/ODataXmlSerializer.java | 7 ------- 2 files changed, 14 deletions(-) diff --git a/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/json/ODataJsonSerializer.java b/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/json/ODataJsonSerializer.java index edca2e436..3d6aa6898 100644 --- a/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/json/ODataJsonSerializer.java +++ b/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/json/ODataJsonSerializer.java @@ -311,13 +311,6 @@ public class ODataJsonSerializer extends AbstractODataSerializer { return true; } - private boolean cycleDetected(final Set ancestors, String child) { - if (ancestors == null) { - return false; - } - return ancestors.contains(child); - } - protected void writeEntity(final ServiceMetadata metadata, final EdmEntityType entityType, final Entity entity, final ContextURL contextURL, final ExpandOption expand, Integer toDepth, final SelectOption select, final boolean onlyReference, Set ancestors, final JsonGenerator json) diff --git a/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/xml/ODataXmlSerializer.java b/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/xml/ODataXmlSerializer.java index d8acbf451..06bb13d52 100644 --- a/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/xml/ODataXmlSerializer.java +++ b/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/xml/ODataXmlSerializer.java @@ -427,13 +427,6 @@ public class ODataXmlSerializer extends AbstractODataSerializer { return entity.getId().toASCIIString(); } - private boolean cycleDetected(final Set ancestors, String child) { - if (ancestors == null) { - return false; - } - return ancestors.contains(child); - } - protected void writeEntity(final ServiceMetadata metadata, final EdmEntityType entityType, final Entity entity, final ContextURL contextURL, final ExpandOption expand, final Integer toDepth, final SelectOption select, final String xml10InvalidCharReplacement,