From: Mike Taylor Date: Tue, 1 Apr 2014 12:22:43 +0000 (+0100) Subject: Remove unused utility function objectWithParent. X-Git-Tag: 1.0.0~1105 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=ac1878922c2abfbbfa564548344ae88c3b744198 Remove unused utility function objectWithParent. We use Object.create instead: not as good, but good enough. --- diff --git a/src/mkws-core.js b/src/mkws-core.js index de050e0..9668cd1 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -96,16 +96,6 @@ mkws.log = function(string) { }; -mkws.objectWithParent = function(parent) { - function thing() {} // Must be function so `prototype' works - - thing.prototype = parent; - var res = new thing(); - thing.prototype = null; - return res; -}; - - // This function is taken from a StackOverflow answer // http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript/901144#901144 mkws.getParameterByName = function(name) {