зеркало из https://github.com/mozilla/pjs.git
Fix warnings for unused local variables.
This commit is contained in:
Родитель
f5cacc315a
Коммит
6c2584022d
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче