cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.webapp / src / main / java / eu / etaxonomy / taxeditor / webapp / datasource / common / LocalCdmStore.java
diff --git a/eu.etaxonomy.taxeditor.webapp/src/main/java/eu/etaxonomy/taxeditor/webapp/datasource/common/LocalCdmStore.java b/eu.etaxonomy.taxeditor.webapp/src/main/java/eu/etaxonomy/taxeditor/webapp/datasource/common/LocalCdmStore.java
deleted file mode 100755 (executable)
index ac1e99e..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
-* Copyright (C) 2020 EDIT
-* European Distributed Institute of Taxonomy
-* http://www.e-taxonomy.eu
-*
-* The contents of this file are subject to the Mozilla Public License Version 1.1
-* See LICENSE.TXT at the top of this package for the full license terms.
-*/
-package eu.etaxonomy.taxeditor.webapp.datasource.common;
-
-import eu.etaxonomy.cdm.config.ICdmSource;
-import eu.etaxonomy.taxeditor.model.MessagingUtils;
-import eu.etaxonomy.taxeditor.store.CdmStore;
-import eu.etaxonomy.taxeditor.webapp.CdmServer;
-
-/**
- * @author k.luther
- * @since Aug 26, 2020
- */
-public class LocalCdmStore {
-    private static CdmServer managedServer;
-
-    public static void setManagedServer(CdmServer server) {
-        managedServer = server;
-    }
-
-    public static CdmServer getManagedServer() {
-        return managedServer;
-    }
-
-    /**
-     * Initialize the with the last edited datasource
-     * @deprecated this method is not needed anymore after fully changing to remoting.
-     * Therefore it will be removed
-     */
-
-    @Deprecated
-    public static void connect() {
-        try {
-            ICdmSource cdmSource = CdmDataSourceRepository.getCurrentCdmSource();
-            CdmStore.connect(cdmSource);
-        } catch (Exception e) {
-            MessagingUtils.messageDialog("Connection to CDM Source Failed", CdmStore.class, "Could not connect to target CDM Source", e);
-        }
-    }
-}