Browse Source

cleanup: Drop unused parameter on DhtPackParser

Change-Id: I8f2cd0a04cc95a02c49c16dade1b3509cba02e2d
stable-2.0
Robin Rosenberg 13 years ago
parent
commit
3cd7f09eec
  1. 8
      org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtPackParser.java

8
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtPackParser.java

@ -1016,11 +1016,11 @@ public class DhtPackParser extends PackParser {
break;
case OBJ_TREE:
onTree(info, data);
onTree(data);
break;
case OBJ_TAG:
onTag(info, data);
onTag(data);
break;
}
}
@ -1045,7 +1045,7 @@ public class DhtPackParser extends PackParser {
}
}
private void onTree(DhtInfo obj, byte[] data) {
private void onTree(byte[] data) {
if (isSaveAsCachedPack()) {
treeParser.reset(data);
while (!treeParser.eof()) {
@ -1056,7 +1056,7 @@ public class DhtPackParser extends PackParser {
}
}
private void onTag(DhtInfo obj, byte[] data) {
private void onTag(byte[] data) {
if (isSaveAsCachedPack()) {
idBuffer.fromString(data, 7); // "object $sha1"
lookupByName(idBuffer).setReferenced();

Loading…
Cancel
Save