Skip to content

Commit 446c943

Browse files
akurtakovXavierRaynaud
authored andcommitted
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 <[email protected]> IP-Clean: Xavier Raynaud <[email protected]> Tested-by: Xavier Raynaud <[email protected]>
1 parent f3d5dd9 commit 446c943

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchConfigurationDelegate.java

+2-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package org.eclipse.linuxtools.internal.gcov.launch;
1717

1818
import java.io.File;
19-
import java.net.URI;
2019
import java.util.List;
2120

2221
import org.eclipse.cdt.debug.core.CDebugUtils;
@@ -135,8 +134,7 @@ protected String getPluginID() {
135134

136135
protected IProject getProject(){
137136
try{
138-
IProject project = CDebugUtils.verifyCProject(config).getProject();
139-
return project;
137+
return CDebugUtils.verifyCProject(config).getProject();
140138
} catch (CoreException e) {
141139
e.printStackTrace();
142140
}
@@ -151,9 +149,7 @@ protected IProject getProject(){
151149
* @since 1.1
152150
*/
153151
protected IPath getExePath(ILaunchConfiguration config) throws CoreException{
154-
IPath exePath = CDebugUtils.verifyProgramPath( config );
155-
156-
return exePath;
152+
return CDebugUtils.verifyProgramPath( config );
157153
}
158154

159155
}

gcov/org.eclipse.linuxtools.gcov.launch/src/org/eclipse/linuxtools/internal/gcov/launch/GcovLaunchPlugin.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
*******************************************************************************/
1111
package org.eclipse.linuxtools.internal.gcov.launch;
1212

13-
import org.eclipse.ui.plugin.AbstractUIPlugin;
1413

1514

1615
/**
1716
* The main plugin class to be used in the desktop.
1817
*/
19-
public class GcovLaunchPlugin extends AbstractUIPlugin {
18+
public class GcovLaunchPlugin {
2019
//shared cache instance for configuration
2120

2221
public static final String PLUGIN_ID = "org.eclipse.linuxtools.gcov.launch"; //$NON-NLS-1$

0 commit comments

Comments
 (0)