You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2012/01/31 10:30:16 UTC

svn commit: r1238318 - /tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/ModelerSource.java

Author: markt
Date: Tue Jan 31 09:30:16 2012
New Revision: 1238318

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

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/ModelerSource.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/ModelerSource.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/ModelerSource.java?rev=1238318&r1=1238317&r2=1238318&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/ModelerSource.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/modeler/modules/ModelerSource.java Tue Jan 31 09:30:16 2012
@@ -16,11 +16,6 @@
  */
 package org.apache.tomcat.util.modeler.modules;
 
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URL;
 import java.util.List;
 
 import javax.management.ObjectName;
@@ -47,49 +42,4 @@ public class ModelerSource {
         // TODO
         return null;
     }
-
-    /** Callback from the BaseMBean to notify that an attribute has changed.
-     * Can be used to implement persistence.
-     *
-     * @param oname
-     * @param name
-     * @param value
-     * @deprecated Unused - will be removed in Tomcat 8.0.x
-     */
-    @Deprecated
-    public void updateField( ObjectName oname, String name,
-                             Object value ) {
-        // nothing by default
-    }
-
-    /**
-     *
-     * @deprecated Unused - will be removed in Tomcat 8.0.x
-     */
-    @Deprecated
-    public void store() {
-        // nothing
-    }
-
-    /**
-     * @deprecated Unused - will be removed in Tomcat 8.0.x
-     */
-    @Deprecated
-    protected InputStream getInputStream() throws IOException {
-        if( source instanceof URL ) {
-            URL url=(URL)source;
-            location=url.toString();
-            return url.openStream();
-        } else if( source instanceof File ) {
-            location=((File)source).getAbsolutePath();
-            return new FileInputStream((File)source);
-        } else if( source instanceof String) {
-            location=(String)source;
-            return new FileInputStream((String)source);
-        } else if( source instanceof InputStream ) {
-            return (InputStream)source;
-        }
-        return null;
-    }
-
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org