summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColby Ranger <cranger@google.com>2013-03-04 14:16:36 -0800
committerColby Ranger <cranger@google.com>2013-03-04 14:16:36 -0800
commit1512d0ab4e420980cb1155e0e2cf98fd90144664 (patch)
tree923f6fe930404eec777f56f34b23282c7a69c9f3
parent4a317a1790ae0d7ca2febaf41ec326ae8a8839b7 (diff)
downloadjgit-1512d0ab4e420980cb1155e0e2cf98fd90144664.tar.gz
jgit-1512d0ab4e420980cb1155e0e2cf98fd90144664.zip
Remove the unused method PackFile.hasExt().
It will be used in a future change, so just include it with that change. Change-Id: I7db28d86f8e8b282a403acd9a4c4defaae828f94
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java
index 6c24a3fef1..17dfa1f1ad 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java
@@ -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;
- }
}