Fix 'Unable to delete declared outputs'
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / components / impl / AttributeBusinessLogic.java
index a44ed3c..f077529 100644 (file)
@@ -408,38 +408,4 @@ public class AttributeBusinessLogic extends BaseBusinessLogic {
         return Either.left(status.left().value().getAttributes());
     }
 
-    public boolean isAttributeUsedByOperation(Component component,
-                                              AttributeDefinition propertyDefinitionEntry) {
-        // TODO - do we need this one
-        return false;
-
-//        // Component's own interfaces
-//        Map<String, InterfaceDefinition> interfaces = component.getInterfaces();
-//        if(MapUtils.isNotEmpty(interfaces)){
-//            for(Map.Entry<String, InterfaceDefinition> interfaceEntry : interfaces.entrySet()) {
-//                if (isPropertyExistInOperationInterface(propertyDefinitionEntry, interfaceEntry.getValue())) {
-//                    return true;
-//                }
-//            }
-//        }
-//
-//        // Component's child's component interfaces
-//        if(isPropertyUsedInCIInterfaces(component.getComponentInstancesInterfaces(), propertyDefinitionEntry)){
-//            return true;
-//        }
-//
-//        // Component's parent's component interfaces
-//        Either<List<Component>, StorageOperationStatus> componentList = toscaOperationFacade.getParentComponents(component.getUniqueId());
-//        if(componentList.isLeft()){
-//            for (Component parentComponent : componentList.left().value()) {
-//                if(isPropertyUsedInCIInterfaces(parentComponent.getComponentInstancesInterfaces(), propertyDefinitionEntry)){
-//                    return true;
-//                }
-//            }
-//        }
-//
-//        return false;
-    }
-
-
 }