Skip to content

Commit 6c3ac23

Browse files
committed
OAK-12175: oak-blob: remove more unused code in fs package
1 parent 0cee5a0 commit 6c3ac23

1 file changed

Lines changed: 0 additions & 39 deletions

File tree

oak-blob/src/main/java/org/apache/jackrabbit/oak/spi/blob/fs/FileSystemPathUtil.java

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,50 +17,11 @@
1717
// copied from Apache Jackrabbit jackrabbit-data module; original class org.apache.jackrabbit.core.fs.FileSystemPathUtil
1818
package org.apache.jackrabbit.oak.spi.blob.fs;
1919

20-
import java.util.BitSet;
21-
22-
2320
/**
2421
* Utility class for handling paths in a file system.
2522
*/
2623
public final class FileSystemPathUtil {
2724

28-
/**
29-
* The list of characters that are not encoded by the <code>escapeName(String)</code>
30-
* and <code>unescape(String)</code> methods. They contains the characters
31-
* which can safely be used in file names:
32-
*/
33-
public static final BitSet SAFE_NAMECHARS;
34-
35-
/**
36-
* The list of characters that are not encoded by the <code>escapePath(String)</code>
37-
* and <code>unescape(String)</code> methods. They contains the characters
38-
* which can safely be used in file paths:
39-
*/
40-
public static final BitSet SAFE_PATHCHARS;
41-
42-
static {
43-
// build list of valid name characters
44-
SAFE_NAMECHARS = new BitSet(256);
45-
int i;
46-
for (i = 'a'; i <= 'z'; i++) {
47-
SAFE_NAMECHARS.set(i);
48-
}
49-
for (i = 'A'; i <= 'Z'; i++) {
50-
SAFE_NAMECHARS.set(i);
51-
}
52-
for (i = '0'; i <= '9'; i++) {
53-
SAFE_NAMECHARS.set(i);
54-
}
55-
SAFE_NAMECHARS.set('-');
56-
SAFE_NAMECHARS.set('_');
57-
SAFE_NAMECHARS.set('.');
58-
59-
// build list of valid path characters (includes name characters)
60-
SAFE_PATHCHARS = (BitSet) SAFE_NAMECHARS.clone();
61-
SAFE_PATHCHARS.set(FileSystem.SEPARATOR_CHAR);
62-
}
63-
6425
/**
6526
* private constructor
6627
*/

0 commit comments

Comments
 (0)