Fix warnings for unused local variables.

git-svn-id: svn://10.0.0.236/trunk@236231 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nboyd%atg.com 2007-09-18 18:29:37 +00:00
parent b33a454370
commit a66f774fe0
4 changed files with 0 additions and 8 deletions

View File

@ -587,7 +587,6 @@ final class IRFactory
Node assign;
if (destructuring != -1) {
assign = createDestructuringAssignment(declType, lvalue, id);
int len = assign.getIntProp(Node.DESTRUCTURING_ARRAY_LENGTH, 0);
if (!isForEach && (destructuring == Token.OBJECTLIT ||
destructuringLen != 2))
{

View File

@ -43,9 +43,6 @@ public final class NativeIterator extends IdScriptableObject {
// Iterator
NativeIterator iterator = new NativeIterator();
iterator.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed);
// Generator
NativeGenerator prototype = NativeGenerator.init(scope, sealed);
// StopIteration
NativeObject obj = new StopIteration();

View File

@ -325,7 +325,6 @@ public final class XMLLibImpl extends XMLLib implements Serializable {
}
}
Namespace result;
Object ns = ScriptRuntime.searchDefaultNamespace(cx);
if (ns == null) {
return namespacePrototype;
@ -485,7 +484,6 @@ public final class XMLLibImpl extends XMLLib implements Serializable {
// This is duplication of constructQName(cx, namespaceValue, nameValue)
// but for XMLName
String uri;
String localName;
if (nameValue instanceof QName) {
@ -515,7 +513,6 @@ public final class XMLLibImpl extends XMLLib implements Serializable {
}
XmlNode.QName toNodeQName(Context cx, String name, boolean attribute) {
String local = name;
XmlNode.Namespace defaultNamespace = getDefaultNamespace(cx).getDelegate();
if (name != null && name.equals("*")) {
return XmlNode.QName.create(null, null);

View File

@ -227,7 +227,6 @@ class XMLName extends Ref {
}
private void addDescendantAttributes(XMLList list, XML target) {
XMLName name = this;
if (target.isElement()) {
addMatchingAttributes(list, target);
XML[] children = target.getChildren();