Skip to content

Commit 675b99d

Browse files
committed
Bug: warning "Dead code" in UnitClass.java
1 parent 3cc8794 commit 675b99d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

sources/net.sf.j2s.ui/src/net/sf/j2s/ui/classpath/UnitClass.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,8 @@ public boolean exists() {
3232
return new File(getFolder(), getRelativePath()).exists();
3333
}
3434
public String toHTMLString() {
35-
String bin = "";
3635
// Class unit *.js is loaded by Clazz.load from now on.
37-
if (true) return bin;
38-
if (this.getParent() != null
39-
&& (this.getParent() instanceof CompositeResources)) {
40-
CompositeResources cc = (CompositeResources) this.getParent();
41-
String binRelative = cc.getBinRelativePath();
42-
if (binRelative != null) {
43-
bin += binRelative;
44-
}
45-
}
46-
return J2SLaunchingUtil.wrapTypeJS(getClassName(), bin + getBinRelativePath());
36+
return "";
4737
}
4838

4939
public int getType() {

0 commit comments

Comments
 (0)