Ver Fonte

remove unused methods from utils

afrokick há 6 anos atrás
pai
commit
9863a0d1c9
1 ficheiros alterados com 0 adições e 21 exclusões
  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;