Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/gcov
diff options
context:
space:
mode:
authorAlexander Kurtakov2013-08-30 08:35:32 +0000
committerXavier Raynaud2013-08-30 08:54:54 +0000
commit446c943040c2e9f41decbdedcade2ec3582b68dd (patch)
treec94f04a2a64ba7652ba19c674336a20c2f367ee2 /gcov
parentf3d5dd97a0e620da0a76a3d3e4fd21bfbc863092 (diff)
downloadorg.eclipse.linuxtools-446c943040c2e9f41decbdedcade2ec3582b68dd.tar.gz
org.eclipse.linuxtools-446c943040c2e9f41decbdedcade2ec3582b68dd.tar.xz
org.eclipse.linuxtools-446c943040c2e9f41decbdedcade2ec3582b68dd.zip
gcov: Small cleanups.
* remove unused import * remove dead store before return * remove unneeded extends for the ex-activator. Change-Id: Ie18ae45970b13331985252a1835157520077a449 Reviewed-on: https://git.eclipse.org/r/15995 Tested-by: Hudson CI Reviewed-by: Xavier Raynaud <xavier.raynaud@kalray.eu> IP-Clean: Xavier Raynaud <xavier.raynaud@kalray.eu> Tested-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
Diffstat (limited to 'gcov')
-rw-r--r--gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchConfigurationDelegate.java8
-rw-r--r--gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchPlugin.java3
2 files changed, 3 insertions, 8 deletions
diff --git a/gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchConfigurationDelegate.java b/gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchConfigurationDelegate.java
index a4c75f79c0..14c4e8771a 100644
--- a/gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchConfigurationDelegate.java
+++ b/gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchConfigurationDelegate.java
@@ -16,7 +16,6 @@
package org.eclipse.linuxtools.internal.gcov.launch;
import java.io.File;
-import java.net.URI;
import java.util.List;
import org.eclipse.cdt.debug.core.CDebugUtils;
@@ -135,8 +134,7 @@ public class GcovLaunchConfigurationDelegate extends ProfileLaunchConfigurationD
protected IProject getProject(){
try{
- IProject project = CDebugUtils.verifyCProject(config).getProject();
- return project;
+ return CDebugUtils.verifyCProject(config).getProject();
} catch (CoreException e) {
e.printStackTrace();
}
@@ -151,9 +149,7 @@ public class GcovLaunchConfigurationDelegate extends ProfileLaunchConfigurationD
* @since 1.1
*/
protected IPath getExePath(ILaunchConfiguration config) throws CoreException{
- IPath exePath = CDebugUtils.verifyProgramPath( config );
-
- return exePath;
+ return CDebugUtils.verifyProgramPath( config );
}
}
diff --git a/gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchPlugin.java b/gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchPlugin.java
index 11367c95bf..6ddafaddec 100644
--- a/gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchPlugin.java
+++ b/gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchPlugin.java
@@ -10,13 +10,12 @@
*******************************************************************************/
package org.eclipse.linuxtools.internal.gcov.launch;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
/**
* The main plugin class to be used in the desktop.
*/
-public class GcovLaunchPlugin extends AbstractUIPlugin {
+public class GcovLaunchPlugin {
//shared cache instance for configuration
public static final String PLUGIN_ID = "org.eclipse.linuxtools.gcov.launch"; //$NON-NLS-1$

Back to the top