Bug 579331 - Remove unused code in BuildPathsBlock

Change-Id: If5e6777c51ddef05eb5690154e1d1735f714db90
Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/192071
Tested-by: JDT Bot <jdt-bot@eclipse.org>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
Reviewed-by: Lars Vogel <Lars.Vogel@vogella.com>
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
index f1f1574..a91660d 100644
--- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
+++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
@@ -605,7 +605,6 @@
 		CPListElement entryMissing= null;
 		CPListElement entryDeprecated= null;
 		int nEntriesMissing= 0;
-		IClasspathEntry[] entries= new IClasspathEntry[elements.size()];
 
 		for (int i= elements.size()-1 ; i >= 0 ; i--) {
 			CPListElement currElement= elements.get(i);
@@ -621,7 +620,6 @@
 				currElement.setExported(isChecked);
 			}
 
-			entries[i]= currElement.getClasspathEntry();
 			if (currElement.isMissing()) {
 				nEntriesMissing++;
 				if (entryMissing == null) {
@@ -643,10 +641,6 @@
 			fClassPathStatus.setInfo(entryDeprecated.getDeprecationMessage());
 		}
 
-/*		if (fCurrJProject.hasClasspathCycle(entries)) {
-			fClassPathStatus.setWarning(NewWizardMessages.getString("BuildPathsBlock.warning.CycleInClassPath")); //$NON-NLS-1$
-		}
-*/
 		updateBuildPathStatus();
 	}