From 0f530bf5905a20c20b79c67227b6e71639893c3e Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Sun, 16 Feb 2020 09:17:16 +0100 Subject: [PATCH] Remove unused class. --- .../slc/deploy/AbstractDeployedSystem.java | 39 ------------------- .../support/deploy/db/SimpleJdbcDatabase.java | 23 +++++++++-- 2 files changed, 20 insertions(+), 42 deletions(-) delete mode 100644 org.argeo.slc.api/src/org/argeo/slc/deploy/AbstractDeployedSystem.java diff --git a/org.argeo.slc.api/src/org/argeo/slc/deploy/AbstractDeployedSystem.java b/org.argeo.slc.api/src/org/argeo/slc/deploy/AbstractDeployedSystem.java deleted file mode 100644 index 4bb603b55..000000000 --- a/org.argeo.slc.api/src/org/argeo/slc/deploy/AbstractDeployedSystem.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2007-2012 Argeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.argeo.slc.deploy; - -import org.argeo.slc.UnsupportedException; -import org.argeo.slc.build.Distribution; - -public abstract class AbstractDeployedSystem implements DeployedSystem { - public String getDeployedSystemId() { - // TODO Auto-generated method stub - return null; - } - - public DeploymentData getDeploymentData() { - throw new UnsupportedException("Method not supported"); - } - - public Distribution getDistribution() { - throw new UnsupportedException("Method not supported"); - } - - public TargetData getTargetData() { - throw new UnsupportedException("Method not supported"); - } - -} diff --git a/org.argeo.slc.support/src/org/argeo/slc/support/deploy/db/SimpleJdbcDatabase.java b/org.argeo.slc.support/src/org/argeo/slc/support/deploy/db/SimpleJdbcDatabase.java index e04a3e53b..5ff7ab8ff 100644 --- a/org.argeo.slc.support/src/org/argeo/slc/support/deploy/db/SimpleJdbcDatabase.java +++ b/org.argeo.slc.support/src/org/argeo/slc/support/deploy/db/SimpleJdbcDatabase.java @@ -17,10 +17,12 @@ package org.argeo.slc.support.deploy.db; import javax.sql.DataSource; -import org.argeo.slc.deploy.AbstractDeployedSystem; +import org.argeo.slc.build.Distribution; +import org.argeo.slc.deploy.DeployedSystem; +import org.argeo.slc.deploy.DeploymentData; +import org.argeo.slc.deploy.TargetData; -public class SimpleJdbcDatabase extends AbstractDeployedSystem implements - JdbcAware { +public class SimpleJdbcDatabase implements DeployedSystem, JdbcAware { private DataSource dataSource; public String getDeployedSystemId() { @@ -34,4 +36,19 @@ public class SimpleJdbcDatabase extends AbstractDeployedSystem implements public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; } + + @Override + public Distribution getDistribution() { + throw new UnsupportedOperationException(); + } + + @Override + public DeploymentData getDeploymentData() { + throw new UnsupportedOperationException(); + } + + @Override + public TargetData getTargetData() { + throw new UnsupportedOperationException(); + } } -- 2.39.2