Skip to content

Commit 88be00f

Browse files
committed
Bug: warning "The value of the local variable prjName is not used" in J2SAddInnerJarAction.java
1 parent 460d3ad commit 88be00f

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

sources/net.sf.j2s.ui/src/net/sf/j2s/ui/property/J2SAddInnerJarAction.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,10 @@ public J2SAddInnerJarAction(J2SConfigPage page) {
7373
}
7474

7575
public void widgetSelected(SelectionEvent e) {
76-
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
77-
String rootPath = root.getLocation().toOSString();
78-
String rootTruePath = new File(rootPath).getAbsolutePath();
79-
String j2sPath = page.j2sFile.getAbsolutePath();
80-
String prjName = null;
81-
if (j2sPath.startsWith(rootTruePath)) {
82-
j2sPath = j2sPath.substring(rootTruePath.length());
83-
if (j2sPath.startsWith(File.separator)) {
84-
j2sPath = j2sPath.substring(1);
85-
}
86-
prjName = j2sPath.substring(0, j2sPath.indexOf(File.separatorChar));
87-
}
8876
ILabelProvider lp= new LabelProvider() {
8977

9078
public String getText(Object element) {
9179
if (element instanceof J2SLibrary[]) {
92-
//J2SLibrary[] libs = (J2SLibrary[]) element;
9380
return "Inner JS Library";
9481
} else if (element instanceof J2SLibrary) {
9582
J2SLibrary lib = (J2SLibrary) element;

0 commit comments

Comments
 (0)