mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Remove warnings.
This commit is contained in:
parent
436d864a06
commit
c634df9bdb
3 changed files with 5 additions and 9 deletions
|
@ -114,9 +114,8 @@ public abstract class CElement extends PlatformObject implements ICElement {
|
|||
if (offset < endPos && offset >= startPos) {
|
||||
if (child instanceof Parent) {
|
||||
return ((Parent)child).getSourceElementAtOffset(offset);
|
||||
} else {
|
||||
return (ICElement)child;
|
||||
}
|
||||
return (ICElement)child;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -157,9 +156,6 @@ public abstract class CElement extends PlatformObject implements ICElement {
|
|||
children = new ICElement[list.size()];
|
||||
list.toArray(children);
|
||||
return children;
|
||||
} else {
|
||||
// should not happen
|
||||
//Assert.isTrue(false);
|
||||
}
|
||||
return new ICElement[]{this};
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ public class Addr2line {
|
|||
private BufferedReader stdout;
|
||||
private BufferedWriter stdin;
|
||||
private String lastaddr, lastsymbol, lastline;
|
||||
private boolean isDisposed = false;
|
||||
//private boolean isDisposed = false;
|
||||
|
||||
public Addr2line(String command, String[] params, String file) throws IOException {
|
||||
init(command, params, file);
|
||||
|
@ -129,7 +129,7 @@ public class Addr2line {
|
|||
} catch (IOException e) {
|
||||
}
|
||||
addr2line.destroy();
|
||||
isDisposed = true;
|
||||
//isDisposed = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ public class CPPFilt {
|
|||
private Process cppfilt;
|
||||
private BufferedReader stdout;
|
||||
private BufferedWriter stdin;
|
||||
private boolean isDisposed = false;
|
||||
//private boolean isDisposed = false;
|
||||
|
||||
public CPPFilt(String command, String[] params) throws IOException {
|
||||
init(command, params);
|
||||
|
@ -71,6 +71,6 @@ public class CPPFilt {
|
|||
catch (IOException e) {
|
||||
}
|
||||
cppfilt.destroy();
|
||||
isDisposed = true;
|
||||
//isDisposed = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue