Permalink
Browse files

Cleanup config.js and remove unused things

  • Loading branch information...
1 parent 2768cca commit 249baec15d704352d95591ce5c2a0fcfde193e91 @ericf committed Jul 19, 2013
Showing with 2 additions and 12 deletions.
  1. +2 −12 conf/config.js
View
14 conf/config.js
@@ -4,18 +4,8 @@ var path = require('path'),
NODE_ENV = process.env.NODE_ENV,
PORT = process.env.PORT,
- appRoot = process.cwd(),
- config = require('./config.json');
-
-// Poor-mans object clone.
-function clone(config) {
- return JSON.parse(JSON.stringify(config));
-}
-
-// Wrap crazy YUI API.
-function mix(config, overrides) {
- return Y.mix(config, overrides, true, null, 0, true);
-}
+ appRoot = process.cwd(),
+ config = require('./config.json');
config.env = NODE_ENV || 'development';
config.port = PORT || config.port;

0 comments on commit 249baec

Please sign in to comment.