src/jdk/nashorn/internal/objects/Global.java

changeset 1720
c09b105e7be5
parent 1555
bf4599bb97b5
child 1840
68e45b084515
     1.1 --- a/src/jdk/nashorn/internal/objects/Global.java	Tue Jan 19 18:56:23 2016 +0100
     1.2 +++ b/src/jdk/nashorn/internal/objects/Global.java	Fri Jan 22 16:18:19 2016 +0100
     1.3 @@ -1096,8 +1096,6 @@
     1.4              return new NativeArray(ArrayData.allocate((Object[])obj), this);
     1.5          } else if (obj instanceof double[]) { // extension
     1.6              return new NativeArray(ArrayData.allocate((double[])obj), this);
     1.7 -        } else if (obj instanceof long[]) {
     1.8 -            return new NativeArray(ArrayData.allocate((long[])obj), this);
     1.9          } else if (obj instanceof int[]) {
    1.10              return new NativeArray(ArrayData.allocate((int[]) obj), this);
    1.11          } else if (obj instanceof ArrayData) {
    1.12 @@ -1965,16 +1963,6 @@
    1.13      }
    1.14  
    1.15      /**
    1.16 -     * Allocate a new long array.
    1.17 -     *
    1.18 -     * @param initial number values.
    1.19 -     * @return the new array
    1.20 -     */
    1.21 -    public static NativeArray allocate(final long[] initial) {
    1.22 -        return new NativeArray(ArrayData.allocate(initial));
    1.23 -    }
    1.24 -
    1.25 -    /**
    1.26       * Allocate a new integer array.
    1.27       *
    1.28       * @param initial number values.
    1.29 @@ -2263,7 +2251,6 @@
    1.30                      new Specialization[] {
    1.31                      new Specialization(GlobalFunctions.PARSEINT_Z),
    1.32                      new Specialization(GlobalFunctions.PARSEINT_I),
    1.33 -                    new Specialization(GlobalFunctions.PARSEINT_J),
    1.34                      new Specialization(GlobalFunctions.PARSEINT_OI),
    1.35                      new Specialization(GlobalFunctions.PARSEINT_O) });
    1.36          this.parseFloat = ScriptFunction.createBuiltin("parseFloat", GlobalFunctions.PARSEFLOAT);

mercurial