From 22be097879da27145b19f983954a043ba5cabf9b Mon Sep 17 00:00:00 2001 From: bdc34 Date: Mon, 7 Feb 2011 17:57:28 +0000 Subject: [PATCH] Removing some commented out code from IndividualJena --- .../vitro/webapp/dao/jena/IndividualJena.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/IndividualJena.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/IndividualJena.java index 13bcbdc65..ed078734c 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/IndividualJena.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/IndividualJena.java @@ -347,29 +347,6 @@ public class IndividualJena extends IndividualImpl implements Individual { //see NIHVIVO-2001 moniker = ""; } -// try { -// // trying to deal with the fact that an entity may have more than 1 VClass -// List clasList = this.getVClasses(true); -// if (clasList == null || clasList.size() < 2) { -// moniker = getVClass().getName(); -// } else { -// VClass preferredClass = null; -// for (VClass clas : clasList) { -// if (clas.getCustomDisplayView() != null && clas.getCustomDisplayView().length()>0) { -// // arbitrarily deciding that the preferred class (could be >1) is one with a custom view -// preferredClass = clas; -// log.debug("Found direct class ["+clas.getName()+"] with custom view "+clas.getCustomDisplayView()+"; resetting entity vClass to this class"); -// } -// } -// if (preferredClass == null) { -// // no basis for selecting a preferred class name to use -// moniker = null; // was this.getVClass().getName(); -// } else { -// moniker = preferredClass.getName(); -// } -// } -// } catch (Exception e) {} -// } return moniker; } finally { ind.getOntModel().leaveCriticalSection();