From: Laramie Crocker Date: Thu, 28 Oct 2010 22:33:08 +0000 (+0000) Subject: NOJIRA: removed dead code X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=4e1e53b55e33592ff6e224a56cbcdef03e4b3e03;p=tmp%2Fjakarta-migration.git NOJIRA: removed dead code --- diff --git a/services/client/src/main/java/org/collectionspace/services/client/CollectionSpaceClientUtils.java b/services/client/src/main/java/org/collectionspace/services/client/CollectionSpaceClientUtils.java index 2d41de9c4..c2236dfd4 100644 --- a/services/client/src/main/java/org/collectionspace/services/client/CollectionSpaceClientUtils.java +++ b/services/client/src/main/java/org/collectionspace/services/client/CollectionSpaceClientUtils.java @@ -212,11 +212,6 @@ public class CollectionSpaceClientUtils { */ static public Object getObjectFromFile(Class jaxbClass, String fileName) throws Exception { - - JAXBContext context = JAXBContext.newInstance(jaxbClass); - Unmarshaller unmarshaller = context.createUnmarshaller(); - //note: setting schema to null will turn validator off - unmarshaller.setSchema(null); ClassLoader tccl = Thread.currentThread().getContextClassLoader(); InputStream is = tccl.getResourceAsStream(fileName); return getObjectFromStream(jaxbClass, is);