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