From ea5757ff57034a8f2caf4cadf74231c9d070c21f Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Fri, 31 Jan 2014 16:09:29 -0800 Subject: [PATCH] remove app.keys getter/setter closes #203 --- lib/application.js | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/lib/application.js b/lib/application.js index 4166b94..4d9df2e 100644 --- a/lib/application.js +++ b/lib/application.js @@ -105,39 +105,6 @@ app.callback = function(){ } }; -/** - * Set signed cookie keys. - * - * These are passed to [KeyGrip](https://github.com/jed/keygrip), - * however you may also pass your own `KeyGrip` instance. For - * example the following are acceptable: - * - * app.keys = ['im a newer secret', 'i like turtle']; - * app.keys = new KeyGrip(['im a newer secret', 'i like turtle'], 'sha256'); - * - * @param {Array|KeyGrip} keys - * @api public - */ - -app.__defineSetter__('keys', function(keys){ - var ok = keys && (Array.isArray(keys) - || (keys.constructor && keys.constructor.name === 'Keygrip')); - debug('keys %j', keys); - if (!ok) throw new TypeError('app.keys must be an array or Keygrip'); - this._keys = keys; -}); - -/** - * Get `Keygrip` instance. - * - * @return {Keygrip} - * @api public - */ - -app.__defineGetter__('keys', function(){ - return this._keys; -}); - /** * Initialize a new context. *