From f6e769e242144eea50144af9fa50ae8343cab64c Mon Sep 17 00:00:00 2001 From: Munir Ahmad Date: Fri, 9 Mar 2018 19:13:08 -0500 Subject: Remove depricated and unsed methods Change-Id: Iaf6d907f0c0a86ec2bc020c87f07ffd73c5bcb80 Issue-ID: SO-437 Signed-off-by: Munir Ahmad --- .../openecomp/mso/db/catalog/CatalogDatabase.java | 42 ---------------------- 1 file changed, 42 deletions(-) (limited to 'mso-catalog-db/src') diff --git a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/CatalogDatabase.java b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/CatalogDatabase.java index 6b27c50609..e1d590531f 100644 --- a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/CatalogDatabase.java +++ b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/CatalogDatabase.java @@ -4205,28 +4205,6 @@ public class CatalogDatabase implements Closeable { } } - @Deprecated - public void saveNestedHeatTemplate (int parentTemplateId, HeatTemplate childTemplate, String yamlFile) { - /* - long startTime = System.currentTimeMillis (); - LOGGER.debug ("Catalog database - save nested Heat template with name " - + childTemplate.getTemplateName ()); - try { - - saveHeatTemplate(childTemplate, childTemplate.getParameters()); - if (getNestedHeatTemplate(parentTemplateId,childTemplate.getId()) == null) { - HeatNestedTemplate nestedTemplate = new HeatNestedTemplate (); - nestedTemplate.setParentTemplateId (parentTemplateId); - nestedTemplate.setChildTemplateId (childTemplate.getId ()); - nestedTemplate.setProviderResourceFile (yamlFile); - session.save (nestedTemplate); - } - } finally { - LOGGER.recordMetricEvent (startTime, MsoLogger.StatusCode.COMPLETE, MsoLogger.ResponseCode.Suc, "Successfully", "CatalogDB", "saveNestedHeatTemplate", null); - } - */ - } - // 1707 public void saveNestedHeatTemplate (String parentTemplateId, HeatTemplate childTemplate, String yamlFile) { long startTime = System.currentTimeMillis (); @@ -4357,26 +4335,6 @@ public class CatalogDatabase implements Closeable { } } - @Deprecated - public void saveVfModuleToHeatFiles (int parentVfModuleId, HeatFiles childFile) { - /* - long startTime = System.currentTimeMillis (); - LOGGER.debug ("Catalog database - save Heat File to VFmodule link " - + childFile.getFileName()); - try { - saveHeatFiles (childFile); - VfModuleToHeatFiles vfModuleToHeatFile = new VfModuleToHeatFiles (); - vfModuleToHeatFile.setVfModuleId(parentVfModuleId); - vfModuleToHeatFile.setHeatFilesId(childFile.getId()); - - session.save (vfModuleToHeatFile); - - } finally { - LOGGER.recordMetricEvent (startTime, MsoLogger.StatusCode.COMPLETE, MsoLogger.ResponseCode.Suc, "Successfully", "CatalogDB", "saveVfModuleToHeatFiles", null); - } - */ - } - public void saveVfModuleToHeatFiles (String parentVfModuleId, HeatFiles childFile) { long startTime = System.currentTimeMillis (); LOGGER.debug ("Catalog database - save Heat File to VFmodule link " -- cgit 1.2.3-korg