src/Array.cpp
changeset 256 3c184218462d
parent 247 7721042bdb67
child 263 ba85a47ee414
     1.1 --- a/src/Array.cpp	Tue Jan 01 20:08:34 2013 -0800
     1.2 +++ b/src/Array.cpp	Sun Jan 06 13:52:21 2013 -0800
     1.3 @@ -50,27 +50,6 @@
     1.4      return map;
     1.5  }
     1.6  
     1.7 -ArrayMap *
     1.8 -ArrayMap::Attach(Zone *zone, Handle<ArrayType> type)
     1.9 -{
    1.10 -    if (type->newMap())
    1.11 -        return ArrayMap::cast(type->newMap());
    1.12 -
    1.13 -    Local<ArrayMap> map(zone, ArrayMap::New(zone, type));
    1.14 -    if (!map)
    1.15 -        return NULL;
    1.16 -
    1.17 -    // Ensure the inner type has an ArrayMap if needed.
    1.18 -    if (type->contained()->isArray()) {
    1.19 -        Local<ArrayType> contained(zone, ArrayType::cast(type->contained()));
    1.20 -        if (!ArrayMap::Attach(zone, contained))
    1.21 -            return NULL;
    1.22 -    }
    1.23 -
    1.24 -    type->setNewMap(map);
    1.25 -    return map;
    1.26 -}
    1.27 -
    1.28  Array *
    1.29  Array::NewRaw(Zone *zone, Handle<ArrayMap> map, unsigned nelements, Heap::Tenure tenure)
    1.30  {