From 5cdd508cf1569880e7daab884957b851aff94d3d Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Fri, 27 Apr 2018 16:10:33 +0200
Subject: [PATCH] unused code removed

---
 .../gmap/GsonExclusionChebiTreeStrategy.java  | 32 -------------------
 .../gmap/GsonExclusionParentStrategy.java     | 30 -----------------
 2 files changed, 62 deletions(-)
 delete mode 100644 service/src/main/java/lcsb/mapviewer/services/utils/gmap/GsonExclusionChebiTreeStrategy.java
 delete mode 100644 service/src/main/java/lcsb/mapviewer/services/utils/gmap/GsonExclusionParentStrategy.java

diff --git a/service/src/main/java/lcsb/mapviewer/services/utils/gmap/GsonExclusionChebiTreeStrategy.java b/service/src/main/java/lcsb/mapviewer/services/utils/gmap/GsonExclusionChebiTreeStrategy.java
deleted file mode 100644
index b1d67edf5b..0000000000
--- a/service/src/main/java/lcsb/mapviewer/services/utils/gmap/GsonExclusionChebiTreeStrategy.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package lcsb.mapviewer.services.utils.gmap;
-
-import org.primefaces.model.DefaultTreeNode;
-
-import com.google.gson.ExclusionStrategy;
-import com.google.gson.FieldAttributes;
-
-/**
- * This object imlements an exclusion strategy that forbides to serialize
- * "Chebi Tree" like objects. This kind of objects are represented as
- * {@link DefaultTreeNode} class.
- * 
- * @author Piotr Gawron
- * 
- */
-public class GsonExclusionChebiTreeStrategy implements ExclusionStrategy {
-
-	@Override
-	public boolean shouldSkipClass(Class<?> arg0) {
-		if (DefaultTreeNode.class.isAssignableFrom(arg0)) {
-			return true;
-		}
-		return false;
-	}
-
-	@Override
-	public boolean shouldSkipField(FieldAttributes fa) {
-		return false;
-
-	}
-
-}
diff --git a/service/src/main/java/lcsb/mapviewer/services/utils/gmap/GsonExclusionParentStrategy.java b/service/src/main/java/lcsb/mapviewer/services/utils/gmap/GsonExclusionParentStrategy.java
deleted file mode 100644
index be78908fb1..0000000000
--- a/service/src/main/java/lcsb/mapviewer/services/utils/gmap/GsonExclusionParentStrategy.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package lcsb.mapviewer.services.utils.gmap;
-
-import com.google.gson.ExclusionStrategy;
-import com.google.gson.FieldAttributes;
-
-/**
- * This object imlements an exclusion strategy that forbides to serialize parent
- * objects. The main reason is to prevent cyclic serialization in a tree-like
- * structures.
- * 
- * @author Piotr Gawron
- * 
- */
-public class GsonExclusionParentStrategy implements ExclusionStrategy {
-
-	@Override
-	public boolean shouldSkipClass(Class<?> arg0) {
-		return false;
-	}
-
-	@Override
-	public boolean shouldSkipField(FieldAttributes fa) {
-		// String className = fa.getDeclaringClass().getName();
-		String fieldName = fa.getName();
-
-		return fieldName.equals("parent");
-
-	}
-
-}
-- 
GitLab