From da8d7da4ad9b95053ad0655da918a95282114188 Mon Sep 17 00:00:00 2001 From: Soldy <4786022+Soldy@users.noreply.github.com> Date: Wed, 20 Jul 2022 08:56:19 +0100 Subject: [PATCH] remove all delete function Signed-off-by: Soldy <4786022+Soldy@users.noreply.github.com> --- index.js | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/index.js b/index.js index 18ad7b5..30a9241 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ const $levelRunner = (require('levelrunnerrc')).base; /* * @prototype */ -const initBase=function(){ +const Init=function(){ /* * @param {function} func * @param {integer} level @@ -18,15 +18,6 @@ const initBase=function(){ this.startAdd = function(fun, level, name){ return _start.add(fun, level, name); }; - /* - * @param {integer} level - * @param {string} name - * @public - * @return {boolean} - */ - this.startdel = function(level, name){ - return _start.del(level, name); - } /* * @public */ @@ -43,15 +34,6 @@ const initBase=function(){ this.stopAdd = function(fun, level, name){ return _stop.add(fun, level, name); }; - /* - * @param {integer} level - * @param {string} name - * @public - * @return {boolean} - */ - this.stopdel = function(level, name){ - return _stop.del(level, name); - } /* * @public */ @@ -107,7 +89,8 @@ const initBase=function(){ }; -exports.Base = initBase; -exports.base = initBase; // compatibility -exports.init = initBase; // compatibility +exports.Base = Init; +exports.base = Init; // compatibility +exports.init = Init; // compatibility +exports.Init = Init; // compatibility