mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
Remove useless code.
* Else clause. * Unused constructor in private class. Change-Id: I51d9ac08000e9ef6364dac96e96297733335a367 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
This commit is contained in:
parent
b66f413759
commit
b4f1123050
2 changed files with 3 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2005, 2013 Intel Corporation and others.
|
* Copyright (c) 2005, 2018 Intel Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -115,10 +115,6 @@ public class MbsMacroSupplier extends BuildCdtVariablesSupplierBase {
|
||||||
|
|
||||||
private class OptionData extends OptionContextData {
|
private class OptionData extends OptionContextData {
|
||||||
private IBuildObject fOptionContainer;
|
private IBuildObject fOptionContainer;
|
||||||
public OptionData(IOption option, IBuildObject parent) {
|
|
||||||
this(option, parent, parent);
|
|
||||||
}
|
|
||||||
|
|
||||||
public OptionData(IOption option, IBuildObject parent, IBuildObject optionContainer) {
|
public OptionData(IOption option, IBuildObject parent, IBuildObject optionContainer) {
|
||||||
super(option, parent);
|
super(option, parent);
|
||||||
fOptionContainer = optionContainer;
|
fOptionContainer = optionContainer;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2015 QNX Software Systems and others.
|
* Copyright (c) 2015, 2018 QNX Software Systems and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -57,7 +57,6 @@ public class CodanMarkerGenerator implements IMarkerGenerator {
|
||||||
IProblemLocationFactory factory = CodanRuntime.getInstance().getProblemLocationFactory();
|
IProblemLocationFactory factory = CodanRuntime.getInstance().getProblemLocationFactory();
|
||||||
if (info.file instanceof IFile)
|
if (info.file instanceof IFile)
|
||||||
return factory.createProblemLocation((IFile) info.file, info.startChar, info.endChar, info.lineNumber);
|
return factory.createProblemLocation((IFile) info.file, info.startChar, info.endChar, info.lineNumber);
|
||||||
else
|
return new CodanProblemLocation(info.file, info.startChar, info.endChar, info.lineNumber);
|
||||||
return new CodanProblemLocation(info.file, info.startChar, info.endChar, info.lineNumber);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue