From 0f6254c17bb58fc49f00f5f0ed0d60c0a04faf64 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Thu, 7 Aug 2003 15:57:17 +0000 Subject: [PATCH] Removed the unused local variable 'children' from the 'getVariables' method of 'ArrayValue'. --- debug/org.eclipse.cdt.debug.mi.core/ChangeLog | 4 ++++ .../eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog index f5130136171..61bc7fb9b91 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog @@ -1,3 +1,7 @@ +2003-08-06 Mikhail Khodjaiants + * src/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java: + Removed the unused local variable 'children' from the 'getVariables' method. + 2003-08-07 Alain Magloire PR 38964. diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java index a95fe962fa5..7be23d95f13 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java @@ -47,7 +47,7 @@ public class ArrayValue extends DerivedValue implements ICDIArrayValue { * an Array of range[index, index + length - 1] */ public ICDIVariable[] getVariables(int index, int length) throws CDIException { - int children = getChildrenNumber(); + //int children = getChildrenNumber(); //if (index >= children || index + length >= children) { // throw new CDIException("Index out of bound"); //}