|
|
|
@ -97,8 +97,6 @@ public class PackFile implements Iterable<PackIndex.MutableEntry> {
|
|
|
|
|
|
|
|
|
|
private final File packFile; |
|
|
|
|
|
|
|
|
|
private final int extensions; |
|
|
|
|
|
|
|
|
|
private File keepFile; |
|
|
|
|
|
|
|
|
|
private volatile String packName; |
|
|
|
@ -146,7 +144,6 @@ public class PackFile implements Iterable<PackIndex.MutableEntry> {
|
|
|
|
|
public PackFile(final File packFile, int extensions) { |
|
|
|
|
this.packFile = packFile; |
|
|
|
|
this.packLastModified = (int) (packFile.lastModified() >> 10); |
|
|
|
|
this.extensions = extensions; |
|
|
|
|
|
|
|
|
|
// Multiply by 31 here so we can more directly combine with another
|
|
|
|
|
// value in WindowCache.hash(), without doing the multiply there.
|
|
|
|
@ -1090,8 +1087,4 @@ public class PackFile implements Iterable<PackIndex.MutableEntry> {
|
|
|
|
|
String b = (dot < 0) ? p : p.substring(0, dot); |
|
|
|
|
return new File(packFile.getParentFile(), b + '.' + ext.getExtension()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean hasExt(PackExt ext) { |
|
|
|
|
return (extensions & ext.getBit()) != 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|