cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r510934 - /cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/aspect/impl/RequestParameterEventAspect.java
Date Fri, 23 Feb 2007 13:07:32 GMT
Author: cziegeler
Date: Fri Feb 23 05:07:31 2007
New Revision: 510934

URL: http://svn.apache.org/viewvc?view=rev&rev=510934
Log:
Remove unused code

Modified:
    cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/aspect/impl/RequestParameterEventAspect.java

Modified: cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/aspect/impl/RequestParameterEventAspect.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/aspect/impl/RequestParameterEventAspect.java?view=diff&rev=510934&r1=510933&r2=510934
==============================================================================
--- cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/aspect/impl/RequestParameterEventAspect.java
(original)
+++ cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/aspect/impl/RequestParameterEventAspect.java
Fri Feb 23 05:07:31 2007
@@ -17,7 +17,6 @@
 package org.apache.cocoon.portal.event.aspect.impl;
 
 import java.util.StringTokenizer;
-import java.util.List;
 
 import org.apache.cocoon.environment.ObjectModelHelper;
 import org.apache.cocoon.environment.Request;
@@ -37,7 +36,7 @@
 	implements EventAspect {
 
     protected void process(EventAspectContext context,
-                           Request            request, 
+                           Request            request,
                            String             parameterName) {
         String[] values = request.getParameterValues( parameterName );
         final EventManager publisher = context.getPortalService().getEventManager();
@@ -49,14 +48,6 @@
                     publisher.send(e);
                 }
             }
-        } else {
-            List list = (List) request.getAttribute("org.apache.cocoon.portal." + parameterName);
-            if (list != null) {
-                Event[] events = (Event[]) list.toArray(new Event[0]);
-                for (int i = 0; i < events.length; i++) {
-                    publisher.send(events[i]);
-                }
-            }
         }
     }
 
@@ -79,6 +70,6 @@
         if ( !processedDefault ) {
             this.process( context, request, LinkService.DEFAULT_REQUEST_EVENT_PARAMETER_NAME
);
         }
-        context.invokeNext();        
+        context.invokeNext();
 	}
 }



Mime
View raw message