changeset 133:92a1b08a1018

Remove not used: private static String isInstance() code.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 13 Jul 2017 16:51:41 +0200 (2017-07-13)
parents ed499bf51b17
children f638f5257b2e
files tests/Test_PSmetadata.java
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/tests/Test_PSmetadata.java
+++ b/tests/Test_PSmetadata.java
@@ -79,19 +79,4 @@ public class Test_PSmetadata {
 		con.rollback();
 		con.close();
 	}
-
-	private static String isInstance(Object obj, String type) {
-		if (obj == null)
-			return("(null)");
-		try {
-			Class c = Class.forName(type);
-			if (c.isInstance(obj)) {
-				return(obj.getClass().getName() + " is an instance of " + type);
-			} else {
-				return(obj.getClass().getName() + " is NOT an instance of " + type);
-			}
-		} catch (ClassNotFoundException e) {
-			return("No such class: " + type);
-		}
-	}
 }