W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2009

2002/css-validator/org/w3c/css/util Messages.java,1.23,1.24

From: Jean-Guilhem Rouel via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 20 Jan 2009 14:47:26 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LPHt0-0002c8-Sf@lionel-hutz.w3.org>

Update of /sources/public/2002/css-validator/org/w3c/css/util
In directory hutz:/tmp/cvs-serv10025

Modified Files:
	Messages.java 
Log Message:
removing adjustURL


Index: Messages.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Messages.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- Messages.java	20 Jan 2009 13:58:53 -0000	1.23
+++ Messages.java	20 Jan 2009 14:47:24 -0000	1.24
@@ -392,20 +392,4 @@
 
 	}
 
-	/**
-	 * This method is called to clean the URL
-	 * /path/to/file will , file://localhost/path/to/file, file://C:\path\to\file, ...
-	 * will become file:///path/to/file 
-	 * @param resource, the URL to "clean"
-	 * @return the clean URL
-	 * @throws MalformedURLException
-	 */
-	public static URL adjustURL(URL resource) throws MalformedURLException {
-		String urlStr = resource.getFile();
-		if (urlStr.startsWith("file://"))
-			urlStr.replaceFirst("file://localhost", "file://");
-		else
-			urlStr = "file:///" + urlStr;
-		return new URL(urlStr);
-	}
 }
Received on Tuesday, 20 January 2009 14:47:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 20 January 2009 14:47:36 GMT