From ecbaf11ea07069ea36ffd482d4d293c89db75331 Mon Sep 17 00:00:00 2001 From: Mohammad Fares Date: Mon, 1 Oct 2018 12:25:56 +0300 Subject: [PATCH] Remove extra method from di --- di.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/di.js b/di.js index c740051..0126bfe 100644 --- a/di.js +++ b/di.js @@ -4,31 +4,6 @@ * @author Mohammad Fares */ -var is = require('is_js'); - -/** - * Dependencies - * @type {Object} - */ -var dependency = {}; - -/** - * Get a specific dependency - * - * @param {String} key - * @return {Object|Null} return null if not found - */ -module.exports.get = function(key) { - - // Not found - if (is.not.propertyDefined(dependency, key)) { - return null; - } - - return dependency[key]; - -}; - /** * Set/Add a dependency * @@ -37,7 +12,6 @@ module.exports.get = function(key) { */ module.exports.set = function(key, value) { - dependency[key] = value; module.exports[key] = value; };