BatchRefUpdate: Remove unused namesToCheck variable

This variable has been populated and never used since it was
introduced in commit 5cf53fdacf
(Speed up clone/fetch with large number of refs, 2013-02-18).
Noted by FindBugs:
"BatchRefUpdate.java:359, UC_USELESS_OBJECT, Priority: Normal"

Change-Id: I7aacb49540aaee4a83db3d38b15633bb6c4773d0
Signed-off-by: Dan Wang <dwwang@google.com>
This commit is contained in:
Dan Wang 2016-07-14 18:49:29 -07:00 committed by Jonathan Nieder
parent 9a4e8de467
commit 0d2a7b7737
1 changed files with 0 additions and 2 deletions

View File

@ -336,7 +336,6 @@ public void execute(RevWalk walk, ProgressMonitor monitor)
monitor.beginTask(JGitText.get().updatingReferences, commands.size());
List<ReceiveCommand> commands2 = new ArrayList<ReceiveCommand>(
commands.size());
List<String> namesToCheck = new ArrayList<String>(commands.size());
// First delete refs. This may free the name space for some of the
// updates.
for (ReceiveCommand cmd : commands) {
@ -345,7 +344,6 @@ public void execute(RevWalk walk, ProgressMonitor monitor)
cmd.updateType(walk);
switch (cmd.getType()) {
case CREATE:
namesToCheck.add(cmd.getRefName());
commands2.add(cmd);
break;
case UPDATE: