Author: chris.laprun(a)jboss.com
Date: 2011-08-08 17:30:11 -0400 (Mon, 08 Aug 2011)
New Revision: 7011
Modified:
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/ContentRegistryImpl.java
Log:
- GTNPORTAL-1992: removed remains of older code.
Modified:
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/ContentRegistryImpl.java
===================================================================
---
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/ContentRegistryImpl.java 2011-08-08
17:51:25 UTC (rev 7010)
+++
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/content/ContentRegistryImpl.java 2011-08-08
21:30:11 UTC (rev 7011)
@@ -285,15 +285,7 @@
{
final Id<? extends Content> id = GateInImpl.getContentIdFrom(old);
- // if we're asking for a gadget, we need to retrieve it from the
gadget registry first
- if (Gadget.class.isAssignableFrom(id.getIdentifiableType()))
- {
- return get(id);
- }
- else
- {
- return newContentFrom(id, old, id.getIdentifiableType());
- }
+ return get(id);
}
public boolean contains(Id<Content> t)
Show replies by date