diff --git a/md5.js b/md5.js index 13cc06c..471822a 100644 --- a/md5.js +++ b/md5.js @@ -108,16 +108,6 @@ return a } - function convertToFastObject(a) { - function t() { } - t.prototype = a - new t() - return a - } - - function convertAllToFastObject(a) { - for (var s = 0; s < a.length; ++s) convertToFastObject(a[s]) - } var y = 0 function instanceTearOffGetter(a, b) { @@ -224,7 +214,6 @@ lazyFinal: lazyFinal, lazyOld: lazyOld, updateHolder: updateHolder, - convertToFastObject: convertToFastObject, updateTypes: updateTypes, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateLeafTags: setOrUpdateLeafTags @@ -19907,7 +19896,7 @@ var s = function (a) { var m = {} m[a] = 1 - return Object.keys(hunkHelpers.convertToFastObject(m))[0] + return Object.keys(m)[0] } v.getIsolateTag = function (a) { return s("___dart_" + a + v.isolateTag) @@ -20544,8 +20533,6 @@ Function.prototype.$6 = function (a, b, c, d, e, f) { return this(a, b, c, d, e, f) } - convertAllToFastObject(w) - convertToFastObject($); (function (a) { if (typeof document === "undefined") { a(null) diff --git a/readme.md b/readme.md index fb80d9a..27d3cc8 100644 --- a/readme.md +++ b/readme.md @@ -6,7 +6,10 @@ - `function [a-zA-Z0-9]*\(\) \{ \}` - 0/202 -- [x] 清理 `setFunctionNamesIfNecessary` +- 清理无用/兼容函数 + - `setFunctionNamesIfNecessary` + - `convertAllToFastObject` + - `convertToFastObject` - [ ] And more