Skip to content

Commit 5d19165

Browse files
committed
chore(ecmascript): remove size
1 parent 993cba5 commit 5d19165

File tree

1 file changed

+0
-13
lines changed
  • nova_vm/src/ecmascript/builtins/weak_map

1 file changed

+0
-13
lines changed

nova_vm/src/ecmascript/builtins/weak_map/data.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,6 @@ pub(crate) struct WeakMapData {
3535
}
3636

3737
impl WeakMapHeapData {
38-
/// ### [24.2.1.5 WeakMapDataSize ( setData )](https://tc39.es/ecma262/#sec-setdatasize)
39-
///
40-
/// The abstract operation MapDataSize takes argument setData (a List of either
41-
/// ECMAScript language values or EMPTY) and returns a non-negative integer.
42-
#[inline(always)]
43-
pub fn size(&self) -> u32 {
44-
// 1. Let count be 0.
45-
// 2. For each element e of setData, do
46-
// a. If e is not EMPTY, set count to count + 1.
47-
// 3. Return count.
48-
self.weak_map_data.weak_map_data.borrow().len() as u32
49-
}
50-
5138
pub fn keys(&self) -> &[Option<Value>] {
5239
&self.weak_map_data.keys
5340
}

0 commit comments

Comments
 (0)