瀏覽代碼

remove unused methods from utils

afrokick 6 年之前
父節點
當前提交
9863a0d1c9
共有 1 個文件被更改,包括 0 次插入21 次删除
  1. 0 21
      lib/util.ts

+ 0 - 21
lib/util.ts

@@ -210,27 +210,6 @@ export class util {
     return !id || /^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(id);
   }
 
-  static inherits(ctor, superCtor): void {
-    ctor.super_ = superCtor;
-    ctor.prototype = Object.create(superCtor.prototype, {
-      constructor: {
-        value: ctor,
-        enumerable: false,
-        writable: true,
-        configurable: true
-      }
-    });
-  }
-
-  static extend(dest, source): any {
-    for (let key in source) {
-      if (source.hasOwnProperty(key)) {
-        dest[key] = source[key];
-      }
-    }
-    return dest;
-  }
-
   static pack = BinaryPack.pack;
   static unpack = BinaryPack.unpack;