From 95d538d0458ae6206a791edead92cd0e4b1e3990 Mon Sep 17 00:00:00 2001 From: Johan Liesén Date: Thu, 6 Sep 2012 10:37:47 +0200 Subject: Remove unused Class --- lib/utils.coffee | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib') diff --git a/lib/utils.coffee b/lib/utils.coffee index 49481445..39279760 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -119,19 +119,6 @@ Array.copy = (array) -> Array.prototype.slice.call(array, 0) String::startsWith = (str) -> @indexOf(str) == 0 -# A very simple method for defining a new class (constructor and methods) -# using a single hash. No support for inheritance is included because we -# really shouldn't need it. -# TODO(philc): remove this. -Class = - extend: (properties) -> - newClass = -> - @init.apply(this, arguments) if @init - null - newClass.prototype = properties - newClass.constructor = newClass - newClass - globalRoot = window ? global globalRoot.extend = (hash1, hash2) -> for key of hash2 @@ -140,4 +127,3 @@ globalRoot.extend = (hash1, hash2) -> root = exports ? window root.Utils = Utils -root.Class = Class -- cgit v1.2.3