summaryrefslogtreecommitdiff
path: root/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/FileNameCache.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/FileNameCache.java')
-rw-r--r--platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/FileNameCache.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/FileNameCache.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/FileNameCache.java
index 99eca70ed7db..15f6b6475b77 100644
--- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/FileNameCache.java
+++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/FileNameCache.java
@@ -91,6 +91,7 @@ public class FileNameCache {
@NotNull
private static IntObjectLinkedMap.MapEntry<CharSequence> getEntry(int id) {
+ assert id > 0;
final int stripe = calcStripeIdFromNameId(id);
IntSLRUCache<IntObjectLinkedMap.MapEntry<CharSequence>> cache = ourNameCache[stripe];
//noinspection SynchronizationOnLocalVariableOrMethodParameter
@@ -109,10 +110,6 @@ public class FileNameCache {
return getEntry(nameId).value;
}
- static int compareNameTo(int nameId, @NotNull CharSequence name, boolean ignoreCase) {
- return VirtualFileSystemEntry.compareNames(getEntry(nameId).value, name, ignoreCase);
- }
-
@NotNull
static char[] appendPathOnFileSystem(int nameId, @Nullable VirtualFileSystemEntry parent, int accumulatedPathLength, @NotNull int[] positionRef) {
IntObjectLinkedMap.MapEntry<CharSequence> entry = getEntry(nameId);