Remove unused
diff --git a/src/main/java/org/apache/commons/configuration2/io/VFSFileSystem.java b/src/main/java/org/apache/commons/configuration2/io/VFSFileSystem.java
index f815c82..a791b2d 100644
--- a/src/main/java/org/apache/commons/configuration2/io/VFSFileSystem.java
+++ b/src/main/java/org/apache/commons/configuration2/io/VFSFileSystem.java
@@ -47,15 +47,14 @@
* @since 1.7
*/
public class VFSFileSystem extends DefaultFileSystem {
+
/**
* Stream handler required to create URL.
*/
private static final class VFSURLStreamHandler extends URLStreamHandler {
- /** The Protocol used */
- private final String protocol;
public VFSURLStreamHandler(final FileName file) {
- this.protocol = file.getScheme();
+ // empty
}
@Override
@@ -197,7 +196,6 @@
return name.toString();
}
}
-
if (UriParser.extractScheme(fileName) != null) {
return fileName;
}
@@ -238,7 +236,6 @@
@Override
public URL locateFromURL(final String basePath, final String fileName) {
final String fileScheme = UriParser.extractScheme(fileName);
-
// Use DefaultFileSystem if basePath and fileName don't have a scheme.
if ((basePath == null || UriParser.extractScheme(basePath) == null) && fileScheme == null) {
return super.locateFromURL(basePath, fileName);
@@ -280,7 +277,6 @@
final Class<?>[] paramTypes = new Class<?>[2];
paramTypes[0] = FileSystemOptions.class;
paramTypes[1] = value.getClass();
-
try {
final Method method = builder.getClass().getMethod(methodName, paramTypes);
final Object[] params = new Object[2];
@@ -290,6 +286,5 @@
} catch (final Exception ex) {
log.warn("Cannot access property '" + key + "'! Ignoring.", ex);
}
-
}
}