瀏覽代碼

[js] removed ObjectMap.count as it's not used anymore (see #6792, #8084)

Aleksandr Kuzmenko 4 年之前
父節點
當前提交
b621c52709
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      std/js/_std/haxe/ds/ObjectMap.hx

+ 0 - 7
std/js/_std/haxe/ds/ObjectMap.hx

@@ -27,13 +27,6 @@ import js.Lib;
 
 @:coreApi
 class ObjectMap<K:{}, V> implements haxe.Constraints.IMap<K, V> {
-	static var count:Int;
-
-	// initialize count through __init__ magic, because these are generated
-	// before normal static initializations for which ObjectMap should be ready to use
-	// see https://github.com/HaxeFoundation/haxe/issues/6792
-	static inline function __init__():Void
-		count = 0;
 
 	static inline function assignId(obj:{}):Int {
 		return Syntax.code('({0}.__id__ = {1})', obj, Lib.getNextHaxeUID());