mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Removed unused code
Change-Id: I99bde18516ccb5161bb7f8cea0bb7b12264e4b79 Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
0ddab334f0
commit
8445aa5086
13 changed files with 0 additions and 20 deletions
|
@ -13,14 +13,11 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.launch.remote.launching;
|
||||
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.RejectedExecutionException;
|
||||
|
||||
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
||||
import org.eclipse.cdt.dsf.concurrent.DataRequestMonitor;
|
||||
import org.eclipse.cdt.dsf.concurrent.DsfRunnable;
|
||||
import org.eclipse.cdt.dsf.concurrent.ImmediateRequestMonitor;
|
||||
import org.eclipse.cdt.dsf.concurrent.Query;
|
||||
import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants;
|
||||
import org.eclipse.cdt.dsf.gdb.launching.GdbLaunch;
|
||||
import org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate;
|
||||
|
|
|
@ -93,7 +93,6 @@ public class GdbRestartCommand implements IRestartHandler {
|
|||
IContainerDMContext.class);
|
||||
|
||||
fExecutor.submit(new DsfRunnable() {
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void run() {
|
||||
IGDBProcesses procService = fTracker.getService(IGDBProcesses.class);
|
||||
|
|
|
@ -426,7 +426,6 @@ public class GdbConnectCommand extends RefreshableDebugCommand implements IConne
|
|||
private void startNewProcess(ICommandControlDMContext controlDmc, NewExecutableInfo info, RequestMonitor rm) {
|
||||
IGDBProcesses procService = fTracker.getService(IGDBProcesses.class);
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, Object> attributes = fLaunch.getLaunchConfiguration().getAttributes();
|
||||
attributes.put(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_REMOTE_BINARY, info.getTargetPath());
|
||||
attributes.put(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, info.getArguments());
|
||||
|
|
|
@ -145,7 +145,6 @@ public class GdbDebugNewExecutableCommand extends RefreshableDebugCommand implem
|
|||
@Override
|
||||
protected void handleSuccess() {
|
||||
try {
|
||||
@SuppressWarnings( "unchecked" )
|
||||
Map<String, Object> attributes = getLaunchConfiguration().getAttributes();
|
||||
attributes.put( IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_REMOTE_BINARY, getData().getTargetPath() );
|
||||
attributes.put( ICDTLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, getData().getArguments() );
|
||||
|
|
|
@ -111,7 +111,6 @@ public class GDBSolibBlock extends Observable implements IMILaunchConfigurationC
|
|||
if ( fSolibSearchPathBlock != null )
|
||||
fSolibSearchPathBlock.performApply( configuration );
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
Map attrs = configuration.getAttributes();
|
||||
|
||||
if ( fAutoSoLibButton != null )
|
||||
|
|
|
@ -170,7 +170,6 @@ public class ResourceClassContributionItem extends ContributionItem {
|
|||
|
||||
fResourceClassCombo.addSelectionListener(new SelectionListener() {
|
||||
|
||||
@SuppressWarnings({ "null"})
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent e) {
|
||||
String description = fResourceClassCombo.getText();
|
||||
|
|
|
@ -292,7 +292,6 @@ public class GDBBackend extends AbstractDsfService implements IGDBBackend, IMIBa
|
|||
return fProgramPath;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<String> getSharedLibraryPaths() throws CoreException {
|
||||
if (fSharedLibPaths == null) {
|
||||
|
|
|
@ -17,7 +17,6 @@ import org.eclipse.cdt.dsf.concurrent.ImmediateRequestMonitor;
|
|||
import org.eclipse.cdt.dsf.concurrent.RequestMonitor;
|
||||
import org.eclipse.cdt.dsf.debug.service.IBreakpoints;
|
||||
import org.eclipse.cdt.dsf.debug.service.IBreakpointsExtension;
|
||||
import org.eclipse.cdt.dsf.mi.service.IMICommandControl;
|
||||
import org.eclipse.cdt.dsf.mi.service.MIBreakpoints;
|
||||
import org.eclipse.cdt.dsf.service.DsfSession;
|
||||
|
||||
|
@ -28,8 +27,6 @@ import org.eclipse.cdt.dsf.service.DsfSession;
|
|||
*/
|
||||
public class GDBBreakpoints_7_6 extends GDBBreakpoints_7_4
|
||||
{
|
||||
private IMICommandControl fConnection;
|
||||
|
||||
public GDBBreakpoints_7_6(DsfSession session) {
|
||||
super(session);
|
||||
}
|
||||
|
@ -45,9 +42,6 @@ public class GDBBreakpoints_7_6 extends GDBBreakpoints_7_4
|
|||
}
|
||||
|
||||
private void doInitialize(final RequestMonitor rm) {
|
||||
// Get the services references
|
||||
fConnection = getServicesTracker().getService(IMICommandControl.class);
|
||||
|
||||
// Register this service
|
||||
register(new String[] { IBreakpoints.class.getName(),
|
||||
IBreakpointsExtension.class.getName(),
|
||||
|
|
|
@ -28,7 +28,6 @@ import org.eclipse.ui.IViewPart;
|
|||
*
|
||||
* @since 2.0 Moved to different package, exists since 1.0.
|
||||
*/
|
||||
@SuppressWarnings("restriction")
|
||||
public class RefreshAction implements IViewActionDelegate {
|
||||
|
||||
private IMemoryBlock fMemoryBlock = null;
|
||||
|
|
|
@ -109,7 +109,6 @@ import org.eclipse.jface.viewers.TreePath;
|
|||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.ui.IMemento;
|
||||
|
||||
@SuppressWarnings("restriction")
|
||||
public class VariableVMNode extends AbstractExpressionVMNode
|
||||
implements IElementEditor, IElementLabelProvider, IElementPropertiesProvider, IElementMementoProvider
|
||||
{
|
||||
|
|
|
@ -109,7 +109,6 @@ public class DsfExecutable {
|
|||
*/
|
||||
private volatile boolean fSubmitted = false;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public DsfExecutable() {
|
||||
// Use assertion flag (-ea) to jre to avoid affecting performance when not debugging.
|
||||
if (ASSERTIONS_ENABLED || DEBUG_EXECUTOR || DEBUG_MONITORS) {
|
||||
|
|
|
@ -74,7 +74,6 @@ public class CompositeDMContext implements IDMContext {
|
|||
* in path.
|
||||
* @see #getSessionId()
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Object getAdapter(Class adapterType) {
|
||||
IDMContext[] parents = getParents();
|
||||
|
|
|
@ -338,7 +338,6 @@ public abstract class AbstractCLaunchDelegate2 extends LaunchConfigurationDelega
|
|||
ICommand[] commands = project.getDescription().getBuildSpec();
|
||||
assert buildCount == commands.length;
|
||||
for (ICommand command : commands) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, String> args = command.getArguments();
|
||||
if (args == null) {
|
||||
args = new HashMap<String, String>(cfgIdArgs);
|
||||
|
|
Loading…
Add table
Reference in a new issue