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