From a56a5b101cdfeaf7fd6ae8e0838531ed282487ce Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 6 Mar 2011 22:02:28 +0000 Subject: [PATCH] Clean-up, mainly unused code git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1078595 13f79535-47bb-0310-9956-ffa450edef68 --- .../naming/resources/DirContextURLStreamHandler.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/java/org/apache/naming/resources/DirContextURLStreamHandler.java b/java/org/apache/naming/resources/DirContextURLStreamHandler.java index eee71276e..1fdca96d8 100644 --- a/java/org/apache/naming/resources/DirContextURLStreamHandler.java +++ b/java/org/apache/naming/resources/DirContextURLStreamHandler.java @@ -31,8 +31,7 @@ import javax.naming.directory.DirContext; * @author Remy Maucherat * @version $Revision$ */ -public class DirContextURLStreamHandler - extends URLStreamHandler { +public class DirContextURLStreamHandler extends URLStreamHandler { // ----------------------------------------------------------- Constructors @@ -134,21 +133,6 @@ public class DirContextURLStreamHandler /** - * Set the java.protocol.handler.pkgs system property. - */ - public static void setProtocolHandler() { - String value = System.getProperty(Constants.PROTOCOL_HANDLER_VARIABLE); - if (value == null) { - value = Constants.Package; - System.setProperty(Constants.PROTOCOL_HANDLER_VARIABLE, value); - } else if (value.indexOf(Constants.Package) == -1) { - value += "|" + Constants.Package; - System.setProperty(Constants.PROTOCOL_HANDLER_VARIABLE, value); - } - } - - - /** * Returns true if the thread or the context class loader of the current * thread is bound. */ -- 2.11.0