From 25faf63c5fcce27bb67aaa96ab70a7f868a6e7fe Mon Sep 17 00:00:00 2001 From: bcdasilv Date: Mon, 6 Nov 2023 15:13:00 -0800 Subject: [PATCH] Removed unused method --- .../utils/CollectionsAndEnumsUtils.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CollectionsAndEnumsUtils.java b/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CollectionsAndEnumsUtils.java index b5637d0..819bd9e 100644 --- a/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CollectionsAndEnumsUtils.java +++ b/com.teamscale.polarion.plugin/src/com/teamscale/polarion/plugin/utils/CollectionsAndEnumsUtils.java @@ -42,26 +42,6 @@ public static boolean isCollectionHyperlinkStructList(Collection collection) { return false; } - /** - * Takes a raw collection of Polarion linkStructs and converts to a list of strings (the linked - * items IDs). - */ - public static List castLinkedWorkItemsToStrList(Collection linkedItems) { - List result = new ArrayList<>(); - if (isCollectionLinkedWorkItemStructList(linkedItems)) { - try { - List collection = (List) linkedItems; - result = - collection.stream() - .map(elem -> elem.getLinkedItem().getId()) - .collect(Collectors.toList()); - } catch (ClassCastException ex) { - // casting should not be an issue since we're checking it on the if - } - } - return result; - } - /** * This will return false if the list is empty, even if the list is of type * ILinkedWorkedItemStruct