# HG changeset patch # User Martin van Dinther <martin.van.dinther@monetdbsolutions.com> # Date 1499957501 -7200 # Node ID 92a1b08a10189bccc7d2ba096b2b80439d45d10c # Parent ed499bf51b171774a42c788efe7c84c06f2696fc Remove not used: private static String isInstance() code. diff --git a/tests/Test_PSmetadata.java b/tests/Test_PSmetadata.java --- 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); - } - } }