Commit e6763a2c authored by Piotr Gawron's avatar Piotr Gawron

unused method removed

parent 8dd168e6
......@@ -11,7 +11,6 @@ import org.apache.commons.io.FileUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.core.LogEvent;
import org.hibernate.HibernateException;
import org.primefaces.model.DefaultTreeNode;
import org.primefaces.model.TreeNode;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -311,12 +310,6 @@ public class ProjectService implements IProjectService {
}
@Override
public void addProject(Project project) {
projectDao.add(project);
}
@Override
public void createProject(final CreateProjectParams params) {
// this count down is used to wait for asynchronous thread to initialize
......
......@@ -55,14 +55,6 @@ public interface IProjectService {
*/
void removeProject(Project project, String homeDir, boolean async);
/**
* Adds project to the system.
*
* @param project
* object to add
*/
void addProject(Project project);
/**
* Creates project using give parameters. See {@link CreateProjectParams}.
*
......
......@@ -16,8 +16,6 @@ import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;
import lcsb.mapviewer.annotation.services.DrugbankHTMLParser;
import lcsb.mapviewer.annotation.services.ModelAnnotator;
import lcsb.mapviewer.common.MinervaLoggerAppender;
import lcsb.mapviewer.common.UnitTestFailedWatcher;
import lcsb.mapviewer.converter.ConverterParams;
......@@ -26,13 +24,10 @@ import lcsb.mapviewer.model.map.model.Model;
import lcsb.mapviewer.model.user.User;
import lcsb.mapviewer.persist.DbUtils;
import lcsb.mapviewer.persist.dao.ProjectDao;
import lcsb.mapviewer.persist.dao.map.CommentDao;
import lcsb.mapviewer.persist.dao.map.ModelDao;
import lcsb.mapviewer.persist.dao.map.statistics.SearchHistoryDao;
import lcsb.mapviewer.persist.dao.user.UserDao;
import lcsb.mapviewer.services.interfaces.*;
import lcsb.mapviewer.services.search.chemical.IChemicalService;
import lcsb.mapviewer.services.search.drug.IDrugService;
@Transactional
@Rollback(false)
......
......@@ -84,7 +84,7 @@ public class LayoutServiceTest extends ServiceTestFunctions {
project.addModel(model);
project.setProjectId(projectId);
projectService.addProject(project);
projectDao.add(project);
user = createUser();
user2 = createUser("john.doe.bis");
......@@ -204,7 +204,7 @@ public class LayoutServiceTest extends ServiceTestFunctions {
localProject.addModel(localModel);
localProject.setProjectId(clearProjectId);
projectService.addProject(localProject);
projectDao.add(localProject);
CreateLayoutParams params = new CreateLayoutParams().name("Test").directory("testDir").project(localProject)
.colorInputStream(new FileInputStream("testFiles/enricoData/ge001.txt")).user(user);
......@@ -285,7 +285,7 @@ public class LayoutServiceTest extends ServiceTestFunctions {
.createModel(new ConverterParams().filename("testFiles/coloring/problematicModel2.xml"));
project.addModel(model);
projectService.addProject(project);
projectDao.add(project);
FileInputStream fis = new FileInputStream("testFiles/coloring/problematicSchema2.txt");
CreateLayoutParams params = new CreateLayoutParams().name("Test").directory("testDir").project(project)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment