Fix warning: The value of the parameter otp is not used
Silence warning by removing unused argument to the beginCopyAsIs() method. Change-Id: I94e7ff1c61cf8b03752de2974baa24b9c061c163
This commit is contained in:
parent
9b28f43cf1
commit
788f439c0e
|
@ -50,7 +50,6 @@
|
||||||
import org.eclipse.jgit.errors.UnsupportedPackVersionException;
|
import org.eclipse.jgit.errors.UnsupportedPackVersionException;
|
||||||
import org.eclipse.jgit.internal.JGitText;
|
import org.eclipse.jgit.internal.JGitText;
|
||||||
import org.eclipse.jgit.internal.storage.pack.BinaryDelta;
|
import org.eclipse.jgit.internal.storage.pack.BinaryDelta;
|
||||||
import org.eclipse.jgit.internal.storage.pack.ObjectToPack;
|
|
||||||
import org.eclipse.jgit.internal.storage.pack.PackOutputStream;
|
import org.eclipse.jgit.internal.storage.pack.PackOutputStream;
|
||||||
import org.eclipse.jgit.lib.AbbreviatedObjectId;
|
import org.eclipse.jgit.lib.AbbreviatedObjectId;
|
||||||
import org.eclipse.jgit.lib.AnyObjectId;
|
import org.eclipse.jgit.lib.AnyObjectId;
|
||||||
|
@ -384,7 +383,7 @@ void copyPackAsIs(PackOutputStream out, WindowCursor curs)
|
||||||
final void copyAsIs(PackOutputStream out, LocalObjectToPack src,
|
final void copyAsIs(PackOutputStream out, LocalObjectToPack src,
|
||||||
boolean validate, WindowCursor curs) throws IOException,
|
boolean validate, WindowCursor curs) throws IOException,
|
||||||
StoredObjectRepresentationNotAvailableException {
|
StoredObjectRepresentationNotAvailableException {
|
||||||
beginCopyAsIs(src);
|
beginCopyAsIs();
|
||||||
try {
|
try {
|
||||||
copyAsIs2(out, src, validate, curs);
|
copyAsIs2(out, src, validate, curs);
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -604,7 +603,7 @@ private void readFully(final long position, final byte[] dstbuf,
|
||||||
throw new EOFException();
|
throw new EOFException();
|
||||||
}
|
}
|
||||||
|
|
||||||
private synchronized void beginCopyAsIs(ObjectToPack otp)
|
private synchronized void beginCopyAsIs()
|
||||||
throws StoredObjectRepresentationNotAvailableException {
|
throws StoredObjectRepresentationNotAvailableException {
|
||||||
if (++activeCopyRawData == 1 && activeWindows == 0) {
|
if (++activeCopyRawData == 1 && activeWindows == 0) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue