aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Liesén2012-09-06 10:37:47 +0200
committerJohan Liesén2012-09-06 10:45:13 +0200
commit95d538d0458ae6206a791edead92cd0e4b1e3990 (patch)
treebc27462dca1ce3b4bfe29164f31f41a4b4352f62
parentcf5d98a8cadff87a54ffbf3fc55dbff4b12831bc (diff)
downloadvimium-95d538d0458ae6206a791edead92cd0e4b1e3990.tar.bz2
Remove unused Class
-rw-r--r--lib/utils.coffee14
1 files changed, 0 insertions, 14 deletions
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