1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Remove deprecated methods.

The methods
MIDataListRegisterValues.MIDataListRegisterValues(IMIExecutionDMContext,
int) and
MIDataListRegisterValues.MIDataListRegisterValues(IMIExecutionDMContext,
int, int[]) have been deprecated for over two years and have been
removed.  Callers should instead the methods of the same name but
passing in an IFrameDMContext instead of an IMIExecutionDMContext.

Following that change, the methods
CommandFactory.MIDataListRegisterValues(IMIExecutionDMContext, int) and
CommandFactory.MIDataListRegisterValues(IMIExecutionDMContext, int,
int[]) have also been removed, and their corresponding methods using
IFrameDMContext should be used instead.

Change-Id: Ifa518b9a113dadb9d3dc44d803d8c3819afe810c
This commit is contained in:
Marc Khouzam 2015-10-09 16:40:54 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent 72352044ae
commit 9d54db2c55
2 changed files with 3 additions and 34 deletions

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2015 QNX Software Systems and others.
* Copyright (c) 2000, 2016 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
@ -466,16 +466,6 @@ public class CommandFactory {
return new MIDataListRegisterNames(ctx, regnos);
}
@Deprecated
public ICommand<MIDataListRegisterValuesInfo> createMIDataListRegisterValues(IMIExecutionDMContext ctx, int fmt) {
return new MIDataListRegisterValues(ctx, fmt);
}
@Deprecated
public ICommand<MIDataListRegisterValuesInfo> createMIDataListRegisterValues(IMIExecutionDMContext ctx, int fmt, int [] regnos) {
return new MIDataListRegisterValues(ctx, fmt, regnos);
}
/**
* @since 4.3
*/

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2013 QNX Software Systems and others.
* Copyright (c) 2000, 2016 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
@ -17,7 +17,6 @@ import org.eclipse.cdt.dsf.datamodel.IDMContext;
import org.eclipse.cdt.dsf.debug.service.IStack.IFrameDMContext;
import org.eclipse.cdt.dsf.debug.service.command.ICommand;
import org.eclipse.cdt.dsf.debug.service.command.ICommandResult;
import org.eclipse.cdt.dsf.mi.service.IMIExecutionDMContext;
import org.eclipse.cdt.dsf.mi.service.MIFormat;
import org.eclipse.cdt.dsf.mi.service.command.output.MIDataListRegisterValuesInfo;
import org.eclipse.cdt.dsf.mi.service.command.output.MIOutput;
@ -53,18 +52,6 @@ public class MIDataListRegisterValues extends MICommand<MIDataListRegisterValues
init(fmt, regnos);
}
@Deprecated
public MIDataListRegisterValues(IMIExecutionDMContext ctx, int fmt) {
this(ctx, fmt, null);
}
@Deprecated
public MIDataListRegisterValues(IMIExecutionDMContext ctx, int fmt, int [] regnos) {
super(ctx, "-data-list-register-values"); //$NON-NLS-1$
init(fmt, regnos);
}
private void init(int fmt, int [] regnos) {
regnums = regnos;
@ -179,14 +166,6 @@ public class MIDataListRegisterValues extends MICommand<MIDataListRegisterValues
/*
* Now construct a new one. The format we will use is this command.
*/
MIDataListRegisterValues dataValues;
if (context instanceof IFrameDMContext) {
dataValues = new MIDataListRegisterValues((IFrameDMContext)context, fFmt, finalregnums);
} else {
//Keeping for compatibility with potential users
dataValues = new MIDataListRegisterValues((IMIExecutionDMContext)context, fFmt, finalregnums);
}
return(dataValues);
return new MIDataListRegisterValues((IFrameDMContext)getContext(), fFmt, finalregnums);
}
}