1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Remove warnings.

This commit is contained in:
Alain Magloire 2004-09-03 21:19:12 +00:00
parent 436d864a06
commit c634df9bdb
3 changed files with 5 additions and 9 deletions

View file

@ -114,9 +114,8 @@ public abstract class CElement extends PlatformObject implements ICElement {
if (offset < endPos && offset >= startPos) { if (offset < endPos && offset >= startPos) {
if (child instanceof Parent) { if (child instanceof Parent) {
return ((Parent)child).getSourceElementAtOffset(offset); 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()]; children = new ICElement[list.size()];
list.toArray(children); list.toArray(children);
return children; return children;
} else {
// should not happen
//Assert.isTrue(false);
} }
return new ICElement[]{this}; return new ICElement[]{this};
} }

View file

@ -24,7 +24,7 @@ public class Addr2line {
private BufferedReader stdout; private BufferedReader stdout;
private BufferedWriter stdin; private BufferedWriter stdin;
private String lastaddr, lastsymbol, lastline; private String lastaddr, lastsymbol, lastline;
private boolean isDisposed = false; //private boolean isDisposed = false;
public Addr2line(String command, String[] params, String file) throws IOException { public Addr2line(String command, String[] params, String file) throws IOException {
init(command, params, file); init(command, params, file);
@ -129,7 +129,7 @@ public class Addr2line {
} catch (IOException e) { } catch (IOException e) {
} }
addr2line.destroy(); addr2line.destroy();
isDisposed = true; //isDisposed = true;
} }
} }

View file

@ -24,7 +24,7 @@ public class CPPFilt {
private Process cppfilt; private Process cppfilt;
private BufferedReader stdout; private BufferedReader stdout;
private BufferedWriter stdin; private BufferedWriter stdin;
private boolean isDisposed = false; //private boolean isDisposed = false;
public CPPFilt(String command, String[] params) throws IOException { public CPPFilt(String command, String[] params) throws IOException {
init(command, params); init(command, params);
@ -71,6 +71,6 @@ public class CPPFilt {
catch (IOException e) { catch (IOException e) {
} }
cppfilt.destroy(); cppfilt.destroy();
isDisposed = true; //isDisposed = true;
} }
} }