From ca4773993d6e9bfdf9e41d5214684c14a54f7d84 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Wed, 24 Jul 2019 19:51:34 +0200
Subject: [PATCH] old unused class removed

---
 .../services/overlay/ChebiTreeRow.java        | 125 ------------------
 .../services/overlay/AllOverlayTests.java     |   3 +-
 .../services/overlay/ChebiTreeRowTest.java    |  23 ----
 3 files changed, 1 insertion(+), 150 deletions(-)
 delete mode 100644 service/src/main/java/lcsb/mapviewer/services/overlay/ChebiTreeRow.java
 delete mode 100644 service/src/test/java/lcsb/mapviewer/services/overlay/ChebiTreeRowTest.java

diff --git a/service/src/main/java/lcsb/mapviewer/services/overlay/ChebiTreeRow.java b/service/src/main/java/lcsb/mapviewer/services/overlay/ChebiTreeRow.java
deleted file mode 100644
index 0a023e2e13..0000000000
--- a/service/src/main/java/lcsb/mapviewer/services/overlay/ChebiTreeRow.java
+++ /dev/null
@@ -1,125 +0,0 @@
-package lcsb.mapviewer.services.overlay;
-
-import java.io.Serializable;
-
-/**
- * This object is used for representing row of object in chebi ontology in the
- * client side Primefaces p:treeTable object.
- * 
- * @author Piotr Gawron
- * 
- */
-public class ChebiTreeRow implements Serializable {
-	/**
-	 * 
-	 */
-	private static final long	serialVersionUID	= 1L;
-	
-	/**
-	 * Name of the chebi entity.
-	 */
-	private String	name;
-	
-	/**
-	 * Identifier of chebi entity.
-	 */
-	private String	id;
-	
-	/**
-	 * Link to the chebi entity in chebi webpage.
-	 */
-	private String	link;
-	
-	/**
-	 * Relation associated with this entity.
-	 */
-	private String	relationType;
-
-	/**
-	 * Default constructor.
-	 * 
-	 * @param name
-	 *          Name of the chebi entity
-	 * @param id
-	 *          Identifier of chebi entity
-	 * @param link
-	 *          Link to the chebi entity in chebi webpage
-	 * @param relationType
-	 *          Relation associated with this entity
-	 */
-	public ChebiTreeRow(String name, String id, String link, String relationType) {
-		this.name = name;
-		this.id = id;
-		this.link = link;
-		this.relationType = relationType;
-	}
-
-	/**
-	 * @return the name
-	 * @see #name
-	 */
-	public String getName() {
-		return name;
-	}
-
-	/**
-	 * @param name
-	 *          the name to set
-	 * @see #name
-	 */
-	public void setName(String name) {
-		this.name = name;
-	}
-
-	/**
-	 * @return the id
-	 * @see #id
-	 */
-	public String getId() {
-		return id;
-	}
-
-	/**
-	 * @param id
-	 *          the id to set
-	 * @see #id
-	 */
-	public void setId(String id) {
-		this.id = id;
-	}
-
-	/**
-	 * @return the link
-	 * @see #link
-	 */
-	public String getLink() {
-		return link;
-	}
-
-	/**
-	 * @param link
-	 *          the link to set
-	 * @see #link
-	 */
-	public void setLink(String link) {
-		this.link = link;
-	}
-
-	/**
-	 * @return the relationType
-	 * @see #relationType
-	 */
-	public String getRelationType() {
-		return relationType;
-	}
-
-	/**
-	 * @param relationType
-	 *          the relationType to set
-	 * @see #relationType
-	 */
-	public void setRelationType(String relationType) {
-		this.relationType = relationType;
-	}
-
-}
diff --git a/service/src/test/java/lcsb/mapviewer/services/overlay/AllOverlayTests.java b/service/src/test/java/lcsb/mapviewer/services/overlay/AllOverlayTests.java
index 0f5eedc188..818d875892 100644
--- a/service/src/test/java/lcsb/mapviewer/services/overlay/AllOverlayTests.java
+++ b/service/src/test/java/lcsb/mapviewer/services/overlay/AllOverlayTests.java
@@ -6,8 +6,7 @@ import org.junit.runners.Suite.SuiteClasses;
 
 @RunWith(Suite.class)
 @SuiteClasses({ AnnotatedObjectTreeRowTest.class,
-		ChebiTreeRowTest.class,
-		IconManagerTest.class,
+    IconManagerTest.class,
 })
 public class AllOverlayTests {
 
diff --git a/service/src/test/java/lcsb/mapviewer/services/overlay/ChebiTreeRowTest.java b/service/src/test/java/lcsb/mapviewer/services/overlay/ChebiTreeRowTest.java
deleted file mode 100644
index 555c25a63f..0000000000
--- a/service/src/test/java/lcsb/mapviewer/services/overlay/ChebiTreeRowTest.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package lcsb.mapviewer.services.overlay;
-
-import org.apache.commons.lang3.SerializationUtils;
-import org.junit.*;
-
-import lcsb.mapviewer.services.ServiceTestFunctions;
-
-public class ChebiTreeRowTest extends ServiceTestFunctions{
-
-  @Before
-  public void setUp() throws Exception {
-  }
-
-  @After
-  public void tearDown() throws Exception {
-  }
-
-  @Test
-  public void testSerialization() {
-    SerializationUtils.serialize(new ChebiTreeRow(null, null, null, null));
-  }
-
-}
-- 
GitLab