Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/codan
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-02-08 19:11:59 +0000
committerAlexander Kurtakov2018-02-08 19:11:59 +0000
commitb4f112305059373f8110bc503e982afd38c67b87 (patch)
treececb92ec723ff10f31cd21e5f6c35900f4e0e78c /codan
parentb66f4137597398d9b55a11d427b8020f8f63e42d (diff)
downloadorg.eclipse.cdt-b4f112305059373f8110bc503e982afd38c67b87.tar.gz
org.eclipse.cdt-b4f112305059373f8110bc503e982afd38c67b87.tar.xz
org.eclipse.cdt-b4f112305059373f8110bc503e982afd38c67b87.zip
Remove useless code.
* Else clause. * Unused constructor in private class. Change-Id: I51d9ac08000e9ef6364dac96e96297733335a367 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'codan')
-rw-r--r--codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/CodanMarkerGenerator.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/CodanMarkerGenerator.java b/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/CodanMarkerGenerator.java
index 6bbab47b5c..718668ff29 100644
--- a/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/CodanMarkerGenerator.java
+++ b/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/CodanMarkerGenerator.java
@@ -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
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -57,7 +57,6 @@ public class CodanMarkerGenerator implements IMarkerGenerator {
IProblemLocationFactory factory = CodanRuntime.getInstance().getProblemLocationFactory();
if (info.file instanceof IFile)
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);
}
}

Back to the top