velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r551312 - /velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java
Date Wed, 27 Jun 2007 20:31:10 GMT
Author: nbubna
Date: Wed Jun 27 13:31:09 2007
New Revision: 551312

URL: http://svn.apache.org/viewvc?view=rev&rev=551312
Log:
remove deprecated init()

Modified:
    velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java

Modified: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java?view=diff&rev=551312&r1=551311&r2=551312
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java
(original)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/view/ContextTool.java
Wed Jun 27 13:31:09 2007
@@ -96,18 +96,6 @@
         this.application = (ServletContext)params.get(ViewContext.SERVLET_CONTEXT_KEY);
     }
 
-    @Deprecated
-    public void init(Object obj)
-    {
-        if (obj instanceof ViewContext)
-        {
-            this.context = (ViewContext)obj;
-            this.request = context.getRequest();
-            this.session = request.getSession(false);
-            this.application = context.getServletContext();
-        }
-    }
-
 
     /**
      * Returns the context being analyzed by this tool.



Mime
View raw message