mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 23:15:24 +02:00
[228458] Cleaned up old and unused expression parsing methods.
This commit is contained in:
parent
fe347ce364
commit
3b275318fd
2 changed files with 0 additions and 22 deletions
|
@ -287,16 +287,6 @@ public class RegisterGroupVMNode extends AbstractExpressionVMNode
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getExpressionLength(String expression) {
|
|
||||||
if (expression.startsWith("$$\"")) { //$NON-NLS-1$
|
|
||||||
int secondQuoteIdx = expression.indexOf('"', "$$\"".length()); //$NON-NLS-1$
|
|
||||||
if (secondQuoteIdx > 0) {
|
|
||||||
return secondQuoteIdx + 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getDeltaFlagsForExpression(IExpression expression, Object event) {
|
public int getDeltaFlagsForExpression(IExpression expression, Object event) {
|
||||||
if (event instanceof IRunControl.ISuspendedDMEvent) {
|
if (event instanceof IRunControl.ISuspendedDMEvent) {
|
||||||
return IModelDelta.CONTENT;
|
return IModelDelta.CONTENT;
|
||||||
|
|
|
@ -466,18 +466,6 @@ public class RegisterVMNode extends AbstractExpressionVMNode
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getExpressionLength(String expression) {
|
|
||||||
if (expression.charAt(0) == '$' && Character.isLetterOrDigit(expression.charAt(1))) {
|
|
||||||
int length = 1;
|
|
||||||
while( length < expression.length() && Character.isLetterOrDigit(expression.charAt(length)) ) {
|
|
||||||
length++;
|
|
||||||
}
|
|
||||||
return length;
|
|
||||||
} else {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void testElementForExpression(Object element, IExpression expression, final DataRequestMonitor<Boolean> rm) {
|
protected void testElementForExpression(Object element, IExpression expression, final DataRequestMonitor<Boolean> rm) {
|
||||||
if (!(element instanceof IDMVMContext)) {
|
if (!(element instanceof IDMVMContext)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue