Skip to content
Browse files

some cleanup

  • Loading branch information...
1 parent 5a0d577 commit 556ef927ce96d9b21ff073e519b265721954cf2d @Shogun147 committed
Showing with 4 additions and 49 deletions.
  1. +3 −13 lib/bootstrap.js
  2. +0 −3 lib/config.js
  3. +1 −27 lib/katana.js
  4. +0 −2 lib/model.js
  5. +0 −2 lib/module.js
  6. +0 −2 lib/static.js
View
16 lib/bootstrap.js
@@ -1,16 +1,6 @@
-// Rename it to something else? but what? ...
-
-/*
- # Listen uncaughtException
-*/
-/*process.on('uncaughtException', function(error) {
- console.log('uncaughtException ['+ process.pid +']: \n' + error);
-});*/
-
-
-/*
- # Extend EventEmitter, add series and parallel emit methods with done handler
-*/
+/**
+ * Extend EventEmitter, add series and parallel emit methods with done handler
+ */
var EventEmitter = require('events').EventEmitter;
var Async = require('async');
View
3 lib/config.js
@@ -1,6 +1,3 @@
-var root = global.root;
-var env = global.env;
-
var Path = require('path');
var Fs = require('fs');
View
28 lib/katana.js
@@ -69,7 +69,7 @@ Class('Katana', {
require('./static')(request, response);
} else {
App.series('connection', function(error, results) {
- App.handle_connection(request, response);
+ App.handle_connection(request, response);
}, request, response);
}
});
@@ -184,32 +184,6 @@ Class('Katana', {
});
});
}
-
- /*boot: function() {
- var App = this;
-
- App.series('boot.config', function(error, results) {
- App.series('boot.stores', function(error, results) {
- Model.load(null, function() {
- App.series('boot.models', function(error, results) {
- View.load(null, function() {
- App.series('boot.views', function(error, results) {
- App.series('boot.modules', function(error, results) {
- load(root + 'application/controllers', function(error, controllers) {
- App.controllers = controllers;
-
- App.series('boot.controllers', function(error, results) {
- App.run();
- });
- });
- });
- });
- });
- });
- });
- });
- });
- },*/
}
});
View
2 lib/model.js
@@ -1,5 +1,3 @@
-var root = global.root;
-
var Path = require('path');
var App = require('./katana');
View
2 lib/module.js
@@ -1,5 +1,3 @@
-var root = global.root;
-
var Fs = require('fs');
var Path = require('path');
View
2 lib/static.js
@@ -1,5 +1,3 @@
-var root = global.root;
-
var Path = require('path');
var Fs = require('fs');
var Url = require('url');

0 comments on commit 556ef92

Please sign in to comment.
Something went wrong with that request. Please try again.