Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331319

Summary: PackFile has dead code
Product: [Technology] JGit Reporter: Remy Suen <remy.suen>
Component: JGitAssignee: Project Inbox <jgit.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: caniszczyk, sop
Version: 0.10.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Remy Suen CLA 2010-11-29 06:06:59 EST
The local variable 'shift' is never used on lines 761 and 765. It should either be used for something or be deleted.

See org.eclipse.jgit.storage.file.PackFile's getObjectType(WindowCursor, long) method.
Comment 1 Shawn Pearce CLA 2010-12-01 13:01:37 EST
Thanks Remy.  I've pushed commit d29b5db695225ed9629b028f99070bd182320b0f to remove the unnecessary shift variable in getObjectType().