From 8d5677d866be5f0bd35d19f82c8142bfbcbb3aa6 Mon Sep 17 00:00:00 2001
From: jakubs <jakubs>
Date: Tue, 21 Feb 2012 10:08:32 +0000
Subject: [PATCH] LMS-2794: remove some unused code

SVN: 24512
---
 .../DataSetRegistrationService.java            | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/DataSetRegistrationService.java b/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/DataSetRegistrationService.java
index e721dd7c421..2937deb8786 100644
--- a/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/DataSetRegistrationService.java
+++ b/datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/DataSetRegistrationService.java
@@ -62,9 +62,6 @@ public class DataSetRegistrationService<T extends DataSetInformation> implements
 
     private boolean cleanActionExecuted = false;
 
-    private final ArrayList<DataSetRegistrationAlgorithm> dataSetRegistrations =
-            new ArrayList<DataSetRegistrationAlgorithm>();
-
     private final IDataSetRegistrationDetailsFactory<T> dataSetRegistrationDetailsFactory;
 
     private final File stagingDirectory;
@@ -190,21 +187,9 @@ public class DataSetRegistrationService<T extends DataSetInformation> implements
             }
         }
 
-        int numberOfLocallyRegisteredDataSets = 0;
-        for (DataSetRegistrationAlgorithm registrationAlgorithm : dataSetRegistrations)
-        {
-            List<DataSetInformation> registeredDataSets =
-                    new DataSetRegistrationAlgorithmRunner(registrationAlgorithm).runAlgorithm();
-            numberOfLocallyRegisteredDataSets += registeredDataSets.size();
-        }
-
         // If some transactions were rolledback, then the service did not succeeed
         boolean serviceDidSucceed = false == someTransactionsWereRolledback;
-        if (dataSetRegistrations.size() > 0)
-        {
-            // If we wanted to do some registrations, make sure some were done
-            serviceDidSucceed = serviceDidSucceed && numberOfLocallyRegisteredDataSets > 0;
-        }
+
         if (0 == encounteredErrors.size())
         {
             dssRegistrationLog.registerSuccess();
@@ -234,7 +219,6 @@ public class DataSetRegistrationService<T extends DataSetInformation> implements
     {
         encounteredErrors.add(t);
         rollbackExtantTransactions();
-        dataSetRegistrations.clear();
         executeGlobalCleanAfterwardsAction(false);
     }
 
-- 
GitLab