Skip to content

Commit 865a992

Browse files
author
Vladimir Kotal
committed
remove remnants of history cache for top level directory
1 parent b5285ff commit 865a992

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/FileHistoryCache.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ class FileHistoryCache implements HistoryCache {
8282

8383
private static final String HISTORY_CACHE_DIR_NAME = "historycache";
8484
private static final String LATEST_REV_FILE_NAME = "OpenGroklatestRev";
85-
private static final String DIRECTORY_FILE_PREFIX = "OpenGrokDirHist";
8685

8786
private final PathAccepter pathAccepter = env.getPathAccepter();
8887
private boolean historyIndexDone = false;
@@ -224,10 +223,6 @@ private static File getCachedFile(File file) throws HistoryException,
224223
add = File.separator;
225224
}
226225
sb.append(add);
227-
if (file.isDirectory()) {
228-
sb.append(File.separator);
229-
sb.append(DIRECTORY_FILE_PREFIX);
230-
}
231226
} catch (IOException e) {
232227
throw new HistoryException("Failed to get path relative to " +
233228
"source root for " + file, e);

0 commit comments

Comments
 (0)