diff --git a/lib/util.js b/lib/util.js index 553db0b4..425e8a3a 100644 --- a/lib/util.js +++ b/lib/util.js @@ -750,31 +750,6 @@ }; }; - /** - * set timout before callback would be called - * @param pArgs {func, callback, time} - */ - this.setTimeout = function(pArgs) { - var lDone, - lFunc = pArgs.func, - lTime = pArgs.time || 1000, - lCallBack = function(pArgument) { - if (!lDone) { - lDone = Util.exec(pArgs.callback, pArgument); - } - }; - - var lTimeoutFunc = function() { - setTimeout(function() { - Util.exec(lFunc, lCallBack); - if (!lDone) - lTimeoutFunc(); - }, lTime); - }; - - lTimeoutFunc(); - }; - /** * function makes new array based on first *